1
0
Fork 0
mirror of https://github.com/emacs-twist/org-babel.git synced 2025-03-15 13:07:42 +00:00
org-babel/.github/workflows/test.yml
Akira Komamura ed4fe5fff2 ci: Test on macOS as well
Although this library is written in pure Nix, the built-in support for regular
expressions is platform-dependent, which can cause breakage when run on
different platforms. It's safer to test on all platforms.
2024-09-19 22:42:52 +09:00

28 lines
772 B
YAML

name: Test
on:
push:
paths:
- '**/*.nix'
workflow_dispatch:
jobs:
check:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- 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 --override-input org-babel ..
working-directory: test