2021-12-03 23:02:15 +09:00
|
|
|
name: Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- '**/*.nix'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.4.0
|
|
|
|
- uses: cachix/install-nix-action@v16
|
|
|
|
with:
|
2021-12-03 23:18:24 +09:00
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2021-12-03 23:02:15 +09:00
|
|
|
install_url: https://nixos-nix-install-tests.cachix.org/serve/vij683ly7sl95nnhb67bdjjfabclr85m/install
|
|
|
|
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
|
|
|
|
extra_nix_config: |
|
|
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Run tests
|
|
|
|
run: nix-instantiate --eval --strict test/test.nix
|
2022-02-06 00:55:17 +09:00
|
|
|
- name: Test parameter parsing
|
|
|
|
run: nix-instantiate --eval --strict test/testParams.nix
|