This repository was archived by the owner on May 21, 2025. It is now read-only.
fix check-schema workflow #70
This file contains hidden or 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 }}" | |
- run: nix run .#demostf-parser-schema > schema.json | |
- run: | | |
git diff | |
nix fmt | |
git diff-index --quiet HEAD -- |