Skip to content

Commit d81c8b8

Browse files
authored
fix error in test workflow - Update test.yml (#136)
1 parent 3860f0a commit d81c8b8

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
name: Test
22

3-
on:
4-
push:
5-
branches: [ "main" ]
6-
pull_request:
7-
branches: [ "main" ]
3+
on: [push, pull_request]
84

95
jobs:
106
test:
117
runs-on: ubuntu-latest
12-
8+
env:
9+
TF_VAR_zedcloud_token: ${{ secrets.TF_VAR_ZEDCLOUD_TOKEN }}
10+
TF_VAR_zedcloud_url : ${{ vars.TF_VAR_ZEDCLOUD_URL }}
1311
steps:
1412
- uses: actions/checkout@v4
13+
14+
- name: Set up Go
15+
uses: actions/setup-go@v5
16+
with:
17+
go-version: 1.21
1518

19+
- name: Install dependencies
20+
run: go mod tidy
21+
1622
- name: make test
1723
run: make test
18-
env:
19-
TF_VAR_zedcloud_token: ${{ secrets.TF_VAR_ZEDCLOUD_TOKEN }}
20-
TF_VAR_zedcloud_url : ${{ vars.TF_VAR_ZEDCLOUD_URL }}
24+
25+

0 commit comments

Comments
 (0)