build: download Go modules before running tests

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2023-08-12 10:56:02 +02:00
parent 657158f9e1
commit 865b7666a1
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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"