add local development override option similar to niv #255
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "test" | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.3 | |
- uses: DeterminateSystems/nix-installer-action@v10 | |
- uses: DeterminateSystems/magic-nix-cache-action@v4 | |
- name: Build | |
run: nix-build | |
- name: Run pre-commit hooks | |
run: nix-shell --run "pre-commit run --all" | |
- name: Test dev shell | |
# Simple check that the pins in the current repository are still working. | |
# Importantly, this will fail on any version mismatch, indicating that versions need to be upgraded. | |
run: nix-shell --run "npins show" | |
- name: Run smoke test | |
run: nix-shell --run "bash ./.github/workflows/smoke-test.sh" | |
- name: Run integration tests | |
run: nix-build -A meta.tests |