Skip to content

Commit

Permalink
Add caching to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Apr 6, 2024
1 parent 2d0ed0c commit 4a2696b
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
name: "test"
name: "Test"

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]

jobs:
testbuild:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install nix
uses: cachix/install-nix-action@v18
with:
install_url: https://releases.nixos.org/nix/nix-2.12.0/install
extra_nix_config: |
experimental-features = flakes nix-command
uses: cachix/install-nix-action@v25

- uses: cachix/cachix-action@v10
- uses: cachix/cachix-action@v14
with:
name: holochain-ci
name: wsl-checked
extraPullNames: holochain-ci
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}

- name: Install NPM dependencies
run: |
Expand All @@ -39,4 +36,3 @@ jobs:
- name: Run CLI tests
run: |
nix develop --command npm run test:cli

0 comments on commit 4a2696b

Please sign in to comment.