-
Notifications
You must be signed in to change notification settings - Fork 16
48 lines (39 loc) · 1.08 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
name: Test
on:
pull_request:
push:
branches:
- "main"
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out source code
uses: actions/checkout@v3
- name: Install nix
uses: cachix/install-nix-action@v19
with:
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
- name: Set up cachix
uses: cachix/cachix-action@v12
with:
name: holochain-ci
- name: Cache test zome build
uses: actions/cache@v3
env:
cache-name: test-zome
with:
path: test/e2e/fixture/zomes/foo/target
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Cargo.lock') }}
- name: Run all tests
id: build-and-test
run: nix develop -c './run-test.sh'
- name: Setup tmate session if a previous step failed
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3