mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-03-18 21:50:33 +01:00
ci: use npm cache too
This commit is contained in:
@@ -17,6 +17,10 @@ steps:
|
|||||||
JFA_GO_SNAPSHOT: y
|
JFA_GO_SNAPSHOT: y
|
||||||
JFA_GO_BUILT_BY:
|
JFA_GO_BUILT_BY:
|
||||||
from_secret: BUILT_BY
|
from_secret: BUILT_BY
|
||||||
|
volumes:
|
||||||
|
- jfa-go-build-cache:/root/.cache/go-build
|
||||||
|
- jfa-go-mod-cache:/go/pkg/mod
|
||||||
|
- jfa-go-npm-cache:/npm
|
||||||
commands:
|
commands:
|
||||||
- npm i
|
- npm i
|
||||||
- make precompile
|
- make precompile
|
||||||
@@ -30,6 +34,7 @@ steps:
|
|||||||
volumes:
|
volumes:
|
||||||
- jfa-go-build-cache:/root/.cache/go-build
|
- jfa-go-build-cache:/root/.cache/go-build
|
||||||
- jfa-go-mod-cache:/go/pkg/mod
|
- jfa-go-mod-cache:/go/pkg/mod
|
||||||
|
- jfa-go-npm-cache:/npm
|
||||||
commands:
|
commands:
|
||||||
- make test
|
- make test
|
||||||
- name: build
|
- name: build
|
||||||
@@ -42,6 +47,7 @@ steps:
|
|||||||
volumes:
|
volumes:
|
||||||
- jfa-go-build-cache:/root/.cache/go-build
|
- jfa-go-build-cache:/root/.cache/go-build
|
||||||
- jfa-go-mod-cache:/go/pkg/mod
|
- jfa-go-mod-cache:/go/pkg/mod
|
||||||
|
- jfa-go-npm-cache:/npm
|
||||||
commands:
|
commands:
|
||||||
- curl -sfL https://goreleaser.com/static/run > ../goreleaser
|
- curl -sfL https://goreleaser.com/static/run > ../goreleaser
|
||||||
- chmod +x ../goreleaser
|
- chmod +x ../goreleaser
|
||||||
|
|||||||
@@ -18,8 +18,12 @@ steps:
|
|||||||
JFA_GO_SNAPSHOT: y
|
JFA_GO_SNAPSHOT: y
|
||||||
JFA_GO_BUILT_BY:
|
JFA_GO_BUILT_BY:
|
||||||
from_secret: BUILT_BY
|
from_secret: BUILT_BY
|
||||||
|
volumes:
|
||||||
|
- jfa-go-build-cache:/root/.cache/go-build
|
||||||
|
- jfa-go-mod-cache:/go/pkg/mod
|
||||||
|
- jfa-go-npm-cache:/npm
|
||||||
commands:
|
commands:
|
||||||
- npm i
|
- npm ci --cache /npm --prefer-offline
|
||||||
- make precompile
|
- make precompile
|
||||||
- go mod download
|
- go mod download
|
||||||
- name: test
|
- name: test
|
||||||
@@ -31,6 +35,7 @@ steps:
|
|||||||
volumes:
|
volumes:
|
||||||
- jfa-go-build-cache:/root/.cache/go-build
|
- jfa-go-build-cache:/root/.cache/go-build
|
||||||
- jfa-go-mod-cache:/go/pkg/mod
|
- jfa-go-mod-cache:/go/pkg/mod
|
||||||
|
- jfa-go-npm-cache:/npm
|
||||||
commands:
|
commands:
|
||||||
- make test
|
- make test
|
||||||
- name: build
|
- name: build
|
||||||
@@ -42,6 +47,7 @@ steps:
|
|||||||
volumes:
|
volumes:
|
||||||
- jfa-go-build-cache:/root/.cache/go-build
|
- jfa-go-build-cache:/root/.cache/go-build
|
||||||
- jfa-go-mod-cache:/go/pkg/mod
|
- jfa-go-mod-cache:/go/pkg/mod
|
||||||
|
- jfa-go-npm-cache:/npm
|
||||||
commands:
|
commands:
|
||||||
- curl -sfL https://goreleaser.com/static/run > goreleaser
|
- curl -sfL https://goreleaser.com/static/run > goreleaser
|
||||||
- chmod +x goreleaser
|
- chmod +x goreleaser
|
||||||
|
|||||||
Reference in New Issue
Block a user