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
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:
parent
169026b6d2
commit
b9b2bc31bd
1 changed files with 29 additions and 0 deletions
29
.github/actions/build/action.yaml
vendored
29
.github/actions/build/action.yaml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue