-
Notifications
You must be signed in to change notification settings - Fork 39
39 lines (37 loc) · 1.32 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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