ci: fix ref to local workflows
CI / install-dependencies (pull_request) Successful in 11m34s
CI / build check (pull_request) Successful in 1m21s
CI / check format (pull_request) Successful in 21s
CI / image check (pull_request) Failing after 15s
CI / check lint (pull_request) Failing after 1m38s
CI / test (pull_request) Successful in 20m14s

This commit is contained in:
2026-05-16 20:15:46 +02:00
parent 6a9cefbaf3
commit 74394b1dab
3 changed files with 24 additions and 51 deletions
+5 -36
View File
@@ -9,64 +9,33 @@ env:
jobs: jobs:
install-dependencies: install-dependencies:
name: install dependencies uses: ./.gitea/workflows/install-go-dependencies.yaml
runs-on:
- ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install dependencies
uses: .gitea/workflows/install-go-dependencies
build-check: build-check:
name: build check name: build check
runs-on:
- ubuntu-latest
needs: install-dependencies needs: install-dependencies
steps: uses: ./.gitea/workflows/run-go-script.yaml
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run build script
uses: .gitea/workflows/run-go-script
with: with:
script: build script: build
check-format: check-format:
name: check format name: check format
runs-on:
- ubuntu-latest
needs: build-check needs: build-check
steps: uses: ./.gitea/workflows/run-go-script.yaml
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run check format script
uses: .gitea/workflows/run-go-script
with: with:
script: check-format script: check-format
check-lint: check-lint:
name: check lint name: check lint
runs-on:
- ubuntu-latest
needs: build-check needs: build-check
steps: uses: ./.gitea/workflows/run-go-script.yaml
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run check lint script
uses: .gitea/workflows/run-go-script
with: with:
script: check-lint script: check-lint
test: test:
name: test name: test
runs-on:
- ubuntu-latest
needs: build-check needs: build-check
steps: uses: ./.gitea/workflows/run-go-script.yaml
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run test script
uses: .gitea/workflows/run-go-script
with: with:
script: test script: test
@@ -10,12 +10,13 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup go - name: Setup go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0.4.0 uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with: with:
go-version-file: go.mod go-version-file: go.mod
check-latest: true check-latest: true
- name: Create cache key - name: Create cache key
uses: .gitea/actions/go-cache-key@main id: go-cache-key
uses: ./.gitea/actions/go-cache-key
- name: cache go - name: cache go
id: cache-go id: cache-go
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
@@ -23,6 +24,8 @@ jobs:
path: | path: |
/go_path /go_path
/go_cache /go_cache
key: go_path-${{ steps.hash-go.outputs.hash }} key: go_path-${{ steps.go-cache-key.outputs.hash }}
restore-keys: |- restore-keys: |-
go_cache-${{ steps.hash-go.outputs.hash }} go_cache-${{ steps.go-cache-key.outputs.hash }}
- name: Download dependencies
run: go mod download
+4 -3
View File
@@ -20,7 +20,8 @@ jobs:
go-version-file: go.mod go-version-file: go.mod
check-latest: true check-latest: true
- name: Create cache key - name: Create cache key
uses: .gitea/actions/go-cache-key@main id: go-cache-key
uses: ./.gitea/actions/go-cache-key
- name: Install dependencies from Cache - name: Install dependencies from Cache
id: cache-go id: cache-go
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
@@ -28,8 +29,8 @@ jobs:
path: | path: |
/go_path /go_path
/go_cache /go_cache
key: go_path-${{ steps.hash-go.outputs.hash }} key: go_path-${{ steps.go-cache-key.outputs.hash }}
restore-keys: |- restore-keys: |-
go_cache-${{ steps.hash-go.outputs.hash }} go_cache-${{ steps.go-cache-key.outputs.hash }}
- name: Run script - name: Run script
run: make ${{ inputs.script }} run: make ${{ inputs.script }}