mirror of
https://codeberg.org/steam-vent/proto-tf2.git
synced 2026-06-03 14:24:08 +02:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: "CI"
|
|
on:
|
|
pull_request:
|
|
push:
|
|
|
|
jobs:
|
|
check-proto:
|
|
runs-on: nix
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: https://codeberg.org/icewind/attic-action@v1
|
|
with:
|
|
name: link
|
|
instance: https://cache.icewind.link
|
|
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
|
- run: |
|
|
nix run .#proto-builder protos src/generated
|
|
- run: |
|
|
git diff
|
|
git diff-index --quiet HEAD --
|
|
|
|
checks:
|
|
runs-on: nix
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: https://codeberg.org/icewind/attic-action@v1
|
|
with:
|
|
name: link
|
|
instance: https://cache.icewind.link
|
|
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
|
- run: nix flake check --keep-going
|
|
|
|
semver:
|
|
runs-on: nix
|
|
needs: checks
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: https://codeberg.org/icewind/attic-action@v1
|
|
with:
|
|
name: ci
|
|
instance: https://cache.icewind.me
|
|
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
|
- run: nix run .#semver-checks
|