Skip to content

Commit

Permalink
ci(check): add check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sunziping2016 committed Jun 15, 2024
1 parent eecb34d commit e075a6d
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Check"
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
workflow_dispatch:

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v14
with:
name: sunziping2016
# Create a personal auth token from https://app.cachix.org/personal-auth-tokens,
# login to cachix, and then generate a signing key and provision it.
# cachix authtoken --stdin # paste personal auth token
# cachix generate-keypair sunziping2016
# gh secret set CACHIX_SIGNING_KEY # paste signing key
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
- run: nix flake show
- run: nix flake check
21 changes: 21 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@

gitignore-nix.url = "github:hercules-ci/gitignore.nix";
gitignore-nix.inputs.nixpkgs.follows = "nixpkgs";

nix-github-actions.url = "github:nix-community/nix-github-actions";
nix-github-actions.inputs.nixpkgs.follows = "nixpkgs";
};

outputs =
Expand Down

0 comments on commit e075a6d

Please sign in to comment.