mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-28 18:21:15 +00:00
Some checks failed
Build / build-nix (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Has been cancelled
Check Generated Files / check-generated (push) Has been cancelled
Build (main) / container (push) Has been cancelled
Build (main) / binaries (amd64, darwin) (push) Has been cancelled
Build (main) / binaries (amd64, linux) (push) Has been cancelled
Build (main) / binaries (arm64, darwin) (push) Has been cancelled
Build (main) / binaries (arm64, linux) (push) Has been cancelled
Nix Flake Checks / build (push) Has been cancelled
Nix Flake Checks / gotest (push) Has been cancelled
Nix Flake Checks / golangci-lint (push) Has been cancelled
Nix Flake Checks / formatting (push) Has been cancelled
NixOS Module Tests / nix-module-check (push) Has been cancelled
Server Tests / servertest (push) Has been cancelled
Point the action at the repo root, which is the canonical entry point in v2; the /action subpath is now a deprecated shim. Closes #3356
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
name: Check Generated Files
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
defaults:
|
|
run:
|
|
shell: nix develop --fallback --command bash -e {0}
|
|
|
|
jobs:
|
|
check-generated:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
fetch-depth: 2
|
|
- name: Get changed files
|
|
id: changed-files
|
|
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
|
with:
|
|
filters: |
|
|
files:
|
|
- '*.nix'
|
|
- 'go.*'
|
|
- '**/*.go'
|
|
- 'tools/**'
|
|
- uses: NixOS/nix-installer-action@6b8548fe06acfb0155a50ab5d561accb215764cc # main
|
|
if: steps.changed-files.outputs.files == 'true'
|
|
- uses: Mic92/hestia@fb239a2f72d4b6e26eec5425f289dea23b27a527 # v2.0.0
|
|
if: steps.changed-files.outputs.files == 'true'
|
|
|
|
- name: Run make generate
|
|
if: steps.changed-files.outputs.files == 'true'
|
|
run: make generate
|
|
|
|
- name: Check for uncommitted changes
|
|
if: steps.changed-files.outputs.files == 'true'
|
|
run: |
|
|
if ! git diff --exit-code; then
|
|
echo "❌ Generated files are not up to date!"
|
|
echo "Please run 'make generate' and commit the changes."
|
|
exit 1
|
|
else
|
|
echo "✅ All generated files are up to date."
|
|
fi
|