nvimConfig/.github/workflows/check.yml
2026-07-27 10:33:31 +10:00

47 lines
1.1 KiB
YAML

name: "Test Cats"
on:
workflow_dispatch: # allows manual triggering
push:
paths:
- 'flake.lock'
- 'flake.nix'
- 'modules/**'
- 'plugin/**'
- 'lua/**'
- 'overlays/**'
- 'ftplugin/**'
pull_request:
paths:
- 'flake.lock'
- 'flake.nix'
- 'modules/**'
- 'plugin/**'
- 'lua/**'
- 'overlays/**'
- 'ftplugin/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v7
- uses: wimpysworld/nothing-but-nix@main
if: runner.os == 'Linux'
with:
hatchet-protocol: 'carve'
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GH_TOKEN }}
- uses: cachix/cachix-action@v17
with:
name: rde
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
extraPullNames: rstats-on-nix, nix-community
- run: nix build
- run: nix develop -c echo ok
- run: nix flake check