Skip to content

Add caching to CI

Add caching to CI #61

Workflow file for this run

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@v25
- uses: cachix/cachix-action@v14
with:
name: wsl-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