chore(release): v0.13.0 #910
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | |
fail-fast: false | |
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: Install nix packages | |
run: nix develop -c $SHELL -c "echo Nix packages installed" | |
- name: Install JS packages | |
run: nix develop -c $SHELL -c "npm ci" | |
- name: Build test fixture | |
run: nix develop -c $SHELL -c "./build-fixture.sh" | |
- name: Run tests | |
run: nix develop -c $SHELL -c "npm t" | |
- name: Setup tmate session if a previous step failed | |
if: ${{ failure() }} | |
uses: mxschmitt/action-tmate@v3 |