Compile all tests in cache populate step (#1534)
## Description Compile all tests in cache populate step. The previous logic would only compile the test in the local directory. ## Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Test - [x] 💻 CI/Deployment - [ ] 🐹 Trivial/Minor ## Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * #<issue> ## Test Plan <!-- How will this be tested prior to merging.--> - [ ] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
fdbea0dcae
commit
f938821960
4
.github/actions/go-setup-cache/action.yml
vendored
4
.github/actions/go-setup-cache/action.yml
vendored
@ -56,6 +56,6 @@ runs:
|
|||||||
# cover all the bases, just to be make sure we loaded everything we'll use
|
# cover all the bases, just to be make sure we loaded everything we'll use
|
||||||
run: |
|
run: |
|
||||||
go mod download -x
|
go mod download -x
|
||||||
go build -o compile
|
go build ./...
|
||||||
go test -v -c -o compile_test
|
go test -run=nope ./...
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -151,7 +151,6 @@ jobs:
|
|||||||
uses: magnetikonline/action-golang-cache@v3
|
uses: magnetikonline/action-golang-cache@v3
|
||||||
with:
|
with:
|
||||||
go-version-file: src/go.mod
|
go-version-file: src/go.mod
|
||||||
cache-key-suffix: -testsuite
|
|
||||||
|
|
||||||
- run: mkdir testlog
|
- run: mkdir testlog
|
||||||
|
|
||||||
@ -214,7 +213,6 @@ jobs:
|
|||||||
uses: magnetikonline/action-golang-cache@v3
|
uses: magnetikonline/action-golang-cache@v3
|
||||||
with:
|
with:
|
||||||
go-version-file: src/go.mod
|
go-version-file: src/go.mod
|
||||||
cache-key-suffix: -lint
|
|
||||||
|
|
||||||
- name: Go Lint
|
- name: Go Lint
|
||||||
uses: golangci/golangci-lint-action@v3
|
uses: golangci/golangci-lint-action@v3
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user