mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-03 00:00:07 +03:00
88aa61eb95
so since up until the last merged changes, this entire gh action pretty much equated to a no-op, afaict. and even now, the only thing i added in PR #272 is a formatter check only for *.nix files. i plan to add more checks soon that will be run by `nix flake check`. but as of right now, adding this is the quickest way to make sure at least something useful is done by this workflow. Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net>
23 lines
667 B
YAML
23 lines
667 B
YAML
name: "Nix-Tests"
|
|
on:
|
|
pull_request:
|
|
push:
|
|
jobs:
|
|
nix-flake-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v27
|
|
with:
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
- uses: cachix/cachix-action@v15
|
|
with:
|
|
name: bcachefs-tools
|
|
# If you chose API tokens for write access OR if you have a private cache
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
- run: nix flake show
|
|
- run: nix flake check --print-build-logs
|
|
- run: nix build --print-build-logs
|