From 4a2696b4afa6934e321fe62ba04232c89fec8c3a Mon Sep 17 00:00:00 2001 From: ThetaSinner Date: Sat, 6 Apr 2024 20:47:59 +0100 Subject: [PATCH] Add caching to CI --- .github/workflows/test.yaml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 209d009..6c5a3a8 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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: | @@ -39,4 +36,3 @@ jobs: - name: Run CLI tests run: | nix develop --command npm run test:cli -