chore(ci): update nix & cachix GH action versions #196
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: Run Tests | |
on: | |
push: | |
branches-ignore: [ main, docs ] | |
paths: | |
- '**.nim*' | |
- '**.cfg' | |
- '.github/workflows/**' | |
pull_request: | |
branches-ignore: [ main, docs ] | |
paths: | |
- '**.nim*' | |
- '**.cfg' | |
- '.github/workflows/**' | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch repo's pushed branch | |
uses: actions/checkout@v3 | |
- name: Install nix | |
uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-22.05 | |
- name: Setup cachix | |
uses: cachix/cachix-action@v12 | |
with: | |
name: my-dotfiles # Holds the cached flake, so not to build it | |
- name: Run tests | |
run: | | |
nix shell -c nimble install pixie -y | |
nix shell -c nimble test |