Fix TypeScript error when using Deno 2 (#266) #750
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Deno | |
run: curl -fsSL https://deno.land/x/install/install.sh | sh | |
- uses: actions/checkout@v1 | |
- name: Run the formatter | |
run: | | |
shopt -s globstar failglob | |
/home/runner/.deno/bin/deno fmt --check | |
- name: Build SQLite | |
id: build | |
run: | | |
export DENO_INSTALL="/home/runner/.deno" | |
export PATH="$DENO_INSTALL/bin:$PATH" | |
sudo apt-get -y install --no-install-recommends tclsh gcc brotli | |
cd build | |
make setup amalgamation release | |
- name: Set Timezone to Non-UTC | |
run: sudo timedatectl set-timezone America/New_York | |
- name: Generate Test Database | |
run: | | |
cd build | |
make testdb | |
- name: Run tests | |
run: /home/runner/.deno/bin/deno test --allow-read --allow-write | |
- name: Run tests (unstable) | |
run: /home/runner/.deno/bin/deno test --unstable --allow-read --allow-write | |
- name: Run tests (DENO_FUTURE) | |
run: DENO_FUTURE=1 /home/runner/.deno/bin/deno test --allow-read --allow-write | |
- name: Run tests (DENO_FUTURE and unstable) | |
run: DENO_FUTURE=1 /home/runner/.deno/bin/deno test --unstable --allow-read --allow-write | |
- name: Run benchmarks | |
run: /home/runner/.deno/bin/deno run bench.ts |