2023 08 29 flake #544
Workflow file for this run
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: run tests | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: {} | |
env: | |
HOLOCHAIN_REPO: "/var/tmp/holochain_repo" | |
CACHIX_REV: "v1.2" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
script: ["./test.sh", "./bench.sh"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install nix | |
uses: cachix/install-nix-action@v20 | |
- name: Setup cachix | |
uses: cachix/cachix-action@v12 | |
if: ${{ ! contains(matrix.platform.runs-on, 'self-hosted') }} | |
with: | |
name: holochain-ci | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
installCommand: | | |
nix-env -if https://github.com/cachix/cachix/tarball/${CACHIX_REV} \ | |
--substituters 'https://cache.nixos.org https://cachix.cachix.org' \ | |
--trusted-public-keys 'cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=' | |
- run: nix develop --command ${{ matrix.script }} |