fix check-schema workflow #71
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: "CI" | |
on: | |
pull_request: | |
push: | |
jobs: | |
checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v27 | |
- uses: icewind1991/attic-action@v1 | |
with: | |
name: ci | |
instance: https://cache.icewind.me | |
authToken: "${{ secrets.ATTIC_TOKEN }}" | |
- run: nix flake check --keep-going | |
semver: | |
runs-on: ubuntu-latest | |
needs: checks | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v27 | |
- uses: icewind1991/attic-action@v1 | |
with: | |
name: ci | |
instance: https://cache.icewind.me | |
authToken: "${{ secrets.ATTIC_TOKEN }}" | |
- run: nix run .#semver-checks | |
check-schema: | |
runs-on: ubuntu-latest | |
needs: checks | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v25 | |
- uses: icewind1991/attic-action@v1 | |
with: | |
name: ci | |
instance: https://cache.icewind.me | |
authToken: "${{ secrets.ATTIC_TOKEN }}" | |
- name: Generate schema | |
run: | | |
nix run .#demostf-parser-schema > schema.json | |
nix fmt | |
- run: | | |
git diff | |
git diff-index --quiet HEAD -- |