Skip to content

Commit

Permalink
Run flake checks on CI
Browse files Browse the repository at this point in the history
Now all linting, compiling, and testing will be done on CI.
  • Loading branch information
jezen committed Feb 13, 2025
1 parent e4a5425 commit 4fb4abd
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,18 @@ name: "Nix"
on:
pull_request:
push:
# cancel previous runs when pushing new changes
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.1
- name: Local cache
uses: actions/cache@v2
with:
path: /nix/store
key: "${{ runner.os }}-nix-cache"
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
# - uses: cachix/cachix-action@v6
# with:
# name: jappie
# signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
# # Only needed for private caches
# #authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# - run: nix-build .
# - run: nix-shell --run "cd incoming; make all"
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: "system-features = kvm nixos-test"

- run: nix flake check -L

0 comments on commit 4fb4abd

Please sign in to comment.