-
Notifications
You must be signed in to change notification settings - Fork 4
85 lines (73 loc) · 1.94 KB
/
test.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: "Test Boltzmann CLI & framework"
on:
push:
branches:
- latest
pull_request:
jobs:
build_and_test:
env:
DEBUG: 1
name: ${{ matrix.os }} / Node ${{ matrix.node_version }} test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# eventually: add lts
node_version: ["12.x", "14.x", "16.x"]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node_version }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/cache@v2
if: runner.os != 'macOS'
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- uses: Swatinem/rust-cache@v1
if: runner.os == 'macOS'
- uses: actions-rs/cargo@v1
timeout-minutes: 10
with:
command: build
- name: run cargo build --release for caching
run: |
bin/buildjs.sh
cargo build --release
- name: run prod-only startup js
shell: bash
run: |
ls -alh templates/
bin/buildjs.sh
bin/test prod_only_startup_js
- name: run prod-only startup ts
shell: bash
run: |
bin/test prod_only_startup_ts
- name: run prod-only build ts
shell: bash
run: |
bin/test prod_only_build_ts
- name: run startup tests
shell: bash
run: |
bin/test startup
- name: run selftest
shell: bash
run: |
bin/test selftest
- name: run examples tests
shell: bash
run: |
bin/test examples