-
Notifications
You must be signed in to change notification settings - Fork 21
43 lines (34 loc) · 1.04 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
name: "test"
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches: [ develop, develop-0.1, develop-0.2 ]
pull_request:
branches: [ develop, develop-0.1, develop-0.2 ]
jobs:
cargotest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --no-fail-fast
testbuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Extend space
uses: ./.github/actions/extend-space
- name: Install nix
uses: cachix/install-nix-action@v23
with:
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
extra_nix_config: |
experimental-features = flakes nix-command
- uses: cachix/cachix-action@v12
with:
name: holochain-ci
- name: Build and test
run: |
cd $GITHUB_WORKSPACE
nix develop --override-input "versions/scaffolding" . .#ci --command ./run_test.sh