Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

ci: add new tests workflow #1

ci: add new tests workflow

ci: add new tests workflow #1

Workflow file for this run

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 }}