This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
Merge pull request #463 from imincik/ci-new-tests-workflow #4
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: Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
env: | |
NIX_CONFIG: "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
test: | |
- custom-package | |
os: | |
- ubuntu-22.04 | |
# - macos-11 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install nix | |
uses: cachix/install-nix-action@v26 | |
- name: Setup cachix | |
uses: cachix/cachix-action@v14 | |
with: | |
name: geonix | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Run test | |
run: bash ./test.sh | |
working-directory: tests/${{ matrix.test }} |