fix: refactor pipelines
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 5s
CI Workflow / Test readiness for publishing provider (pull_request) Failing after 3m31s
CI Workflow / CI run build and linting (pull_request) Failing after 4m50s
CI Workflow / CI run tests (pull_request) Failing after 5m5s
CI Workflow / Code coverage report (pull_request) Has been skipped

This commit is contained in:
Marcel S. Henselin 2026-03-09 11:58:17 +01:00
parent 169026b6d2
commit b9b2bc31bd

View file

@ -53,6 +53,35 @@ runs:
# set -e
# go run generator/main.go build
- name: Determine GOMODCACHE
shell: bash
id: goenv
run: |
set -e
echo "::set-ouput name=gomodcache::$(go env GOMODCACHE)"
- name: Restore cached GO pkg
id: cache-gopkg
uses: https://code.forgejo.org/actions/cache/restore@v5
with:
path: ${{ steps.goenv.outputs.gomodcache }}
key: ${{ runner.os }}-gopkg
- name: Get all go packages
if: steps.cache-gopkg.outputs.cache-hit != 'true'
shell: bash
run: |
set -e
go get ./...
- name: Save Primes
id: cache-primes-save
uses: https://code.forgejo.org/actions/cache/save@v5
with:
path: |
${{ steps.goenv.outputs.gomodcache }}
key: ${{ runner.os }}-gopkg
- name: Run make to build app
shell: bash
run: |