Skip to content

Commit

Permalink
Merge pull request #7 from emacs-twist/update-ci
Browse files Browse the repository at this point in the history
Update CI
  • Loading branch information
akirak authored Sep 19, 2024
2 parents ec71fec + 17988c8 commit fb2a3dc
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 30 deletions.
44 changes: 25 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
name: Test

on:
pull_request:
paths:
- '**/*.nix'
push:
branches:
- master
paths:
- '**/*.nix'
- '**/*.nix'
workflow_dispatch:

jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.4.0
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable
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
- name: Test parameter parsing
run: nix-instantiate --eval --strict test/testParams.nix
- name: Check the derivation
run: nix flake check --override-input org-babel ..
working_directory: test
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V28
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Run tests
run: nix-instantiate --eval --strict test/test.nix
- name: Test parameter parsing
run: nix-instantiate --eval --strict test/testParams.nix
- name: Check the derivation
run: nix flake check --no-write-lock-file --override-input org-babel "path:$PWD/.."
working-directory: test
44 changes: 33 additions & 11 deletions test/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fb2a3dc

Please sign in to comment.