chore(ci): Cache fixture builds of integration test #134
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: "CI" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
nix: | |
runs-on: ${{ matrix.system }} | |
strategy: | |
matrix: | |
system: [aarch64-darwin, x86_64-darwin, x86_64-linux] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: nixci | |
run: nixci --extra-access-tokens "github.com=${{ secrets.GITHUB_TOKEN }}" build --systems "github:nix-systems/${{ matrix.system }}" | |
# First, build the repos used in the test to cache them locally, so as | |
# to avoid GitHub rate limits during the integration test (which | |
# doesn't use the token) | |
- name: Integration Test (preparation) | |
run: | | |
nixci --extra-access-tokens "github.com=${{ secrets.GITHUB_TOKEN }}" build "github:srid/haskell-multi-nix/c85563721c388629fa9e538a1d97274861bc8321" | |
nixci --extra-access-tokens "github.com=${{ secrets.GITHUB_TOKEN }}" build "github:juspay/services-flake/3d764f19d0a121915447641fe49a9b8d02777ff8" | |
- name: Integration Test | |
run: | | |
nix develop -c cargo test -F integration_test |