-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (49 loc) · 1.48 KB
/
test.yaml
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
name: "Test"
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@v26
- uses: cachix/cachix-action@v14
with:
name: esl-checked
extraPullNames: holochain-ci
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Install NPM dependencies
run: |
nix develop --command npm i
- name: Run Rust tests
run: |
nix develop --command npm run test:unit
- name: Run Tryorama tests
run: |
nix develop --command npm run test:integration
- name: Run CLI tests
run: |
nix develop --command npm run test:cli
cli-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.21.10'
- name: Run CLI tests
working-directory: ./checked_cli
run: |
cargo install [email protected]
cargo build --release --target wasm32-unknown-unknown
hc app pack workdir --recursive
# Tests are independent but sweettest is so resource hungry that they run slower in parallel.
cargo test --release -- --test-threads=1