1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 14:32:43 -04:00
nix.dev/.github/workflows/test.yml
asymmetric 82d2ea7258
Merge pull request #860 from NixOS/dependabot/github_actions/cachix/install-nix-action-25
chore(deps): bump cachix/install-nix-action from 24 to 25
2024-01-15 11:20:44 +01:00

40 lines
963 B
YAML

name: "Test"
on:
push: {}
pull_request: {}
jobs:
linkcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v14
with:
name: nix-dev
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Run linkcheck
run: nix-shell --run "make linkcheck"
codeblock:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v14
with:
name: nix-dev
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Run builder
run: nix-shell --run "make dummy"
- name: Test code blocks
run: nix-shell --run "./run_code_block_tests.sh"