Skip to content

Update Browser Build for Deno 2 #752

Update Browser Build for Deno 2

Update Browser Build for Deno 2 #752

Workflow file for this run

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