-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a CI check for the CI source files
Check on the CI that the (generated) CI config files do match their Nickel source. Not as nice as a really dynamic CI, but at least makes sure that things don't drift apart
- Loading branch information
Théophane Hufschmitt
committed
Jun 5, 2024
1 parent
663041d
commit cb48cc3
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
jobs: | ||
check-up-to-date-generated-files: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install Nix | ||
uses: cachix/install-nix-action@v26 | ||
with: | ||
extra_nix_config: accept-flake-config = true | ||
- uses: cachix/cachix-action@v14 | ||
with: | ||
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | ||
name: nickel-schemastore | ||
- name: Check that the file generated by Organist are up-to-date | ||
run: |- | ||
nix run .#regenerate-files -L | ||
git diff --exit-code && echo "All files up-to-date ✅" | ||
on: | ||
push: {} |
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