build: download Go modules before running tests
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
657158f9e1
commit
865b7666a1
2 changed files with 6 additions and 0 deletions
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
|
@ -20,6 +20,8 @@ jobs:
|
||||||
uses: actions/checkout@v3.5.3
|
uses: actions/checkout@v3.5.3
|
||||||
- name: TinyGo version check
|
- name: TinyGo version check
|
||||||
run: tinygo version
|
run: tinygo version
|
||||||
|
- name: Download Go modules
|
||||||
|
run: go mod download
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: go test
|
run: go test
|
||||||
- name: Run TinyGo smoke tests
|
- name: Run TinyGo smoke tests
|
||||||
|
|
4
.github/workflows/macos.yml
vendored
4
.github/workflows/macos.yml
vendored
|
@ -22,6 +22,8 @@ jobs:
|
||||||
go-version: '1.18'
|
go-version: '1.18'
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3.5.3
|
uses: actions/checkout@v3.5.3
|
||||||
|
- name: Download Go modules
|
||||||
|
run: go mod download
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: go test
|
run: go test
|
||||||
- name: "Run macOS smoke tests"
|
- name: "Run macOS smoke tests"
|
||||||
|
@ -37,6 +39,8 @@ jobs:
|
||||||
go-version: '1.21'
|
go-version: '1.21'
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3.5.3
|
uses: actions/checkout@v3.5.3
|
||||||
|
- name: Download Go modules
|
||||||
|
run: go mod download
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: go test
|
run: go test
|
||||||
- name: "Run macOS smoke tests"
|
- name: "Run macOS smoke tests"
|
||||||
|
|
Loading…
Reference in a new issue