File tree Expand file tree Collapse file tree 6 files changed +10
-28
lines changed Expand file tree Collapse file tree 6 files changed +10
-28
lines changed Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-go-dependencies-task.md
2
2
name : Check Go Dependencies
3
3
4
- env :
5
- # See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6
- GO_VERSION : " 1.17"
7
-
8
4
# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
9
5
on :
10
6
create :
87
83
- name : Install Go
88
84
uses : actions/setup-go@v5
89
85
with :
90
- go-version : ${{ env.GO_VERSION }}
86
+ go-version-file : go.mod
91
87
92
88
- name : Install Task
93
89
uses : arduino/setup-task@v2
@@ -146,7 +142,7 @@ jobs:
146
142
- name : Install Go
147
143
uses : actions/setup-go@v5
148
144
with :
149
- go-version : ${{ env.GO_VERSION }}
145
+ go-version-file : go.mod
150
146
151
147
- name : Install Task
152
148
uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-go-task.md
2
2
name : Check Go
3
3
4
- env :
5
- # See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6
- GO_VERSION : " 1.17"
7
-
8
4
# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
9
5
on :
10
6
create :
78
74
- name : Install Go
79
75
uses : actions/setup-go@v5
80
76
with :
81
- go-version : ${{ env.GO_VERSION }}
77
+ go-version-file : ${{ matrix.module.path }}/go.mod
82
78
83
79
- name : Install Task
84
80
uses : arduino/setup-task@v2
@@ -117,7 +113,7 @@ jobs:
117
113
- name : Install Go
118
114
uses : actions/setup-go@v5
119
115
with :
120
- go-version : ${{ env.GO_VERSION }}
116
+ go-version-file : ${{ matrix.module.path }}/go.mod
121
117
122
118
- name : Install Task
123
119
uses : arduino/setup-task@v2
@@ -158,7 +154,7 @@ jobs:
158
154
- name : Install Go
159
155
uses : actions/setup-go@v5
160
156
with :
161
- go-version : ${{ env.GO_VERSION }}
157
+ go-version-file : ${{ matrix.module.path }}/go.mod
162
158
163
159
- name : Install Task
164
160
uses : arduino/setup-task@v2
@@ -197,7 +193,7 @@ jobs:
197
193
- name : Install Go
198
194
uses : actions/setup-go@v5
199
195
with :
200
- go-version : ${{ env.GO_VERSION }}
196
+ go-version-file : ${{ matrix.module.path }}/go.mod
201
197
202
198
- name : Run go mod tidy
203
199
working-directory : ${{ matrix.module.path }}
Original file line number Diff line number Diff line change 2
2
name : Deploy Website
3
3
4
4
env :
5
- # See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6
- GO_VERSION : " 1.17"
7
5
# See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
8
6
PYTHON_VERSION : " 3.9"
9
7
67
65
- name : Install Go
68
66
uses : actions/setup-go@v5
69
67
with :
70
- go-version : ${{ env.GO_VERSION }}
68
+ go-version-file : go.mod
71
69
72
70
- name : Install Python
73
71
uses : actions/setup-python@v5
Original file line number Diff line number Diff line change 10
10
AWS_PLUGIN_TARGET : TODO_AWS_PLUGIN_TARGET
11
11
AWS_REGION : " us-east-1"
12
12
ARTIFACT_PREFIX : dist-
13
- # See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
14
- GO_VERSION : " 1.17"
15
13
16
14
on :
17
15
push :
65
63
- name : Install Go
66
64
uses : actions/setup-go@v5
67
65
with :
68
- go-version : ${{ env.GO_VERSION }}
66
+ go-version-file : go.mod
69
67
70
68
- name : Install Task
71
69
uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change 2
2
name : Test Integration
3
3
4
4
env :
5
- # See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6
- GO_VERSION : " 1.17"
7
5
# See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
8
6
PYTHON_VERSION : " 3.9"
9
7
83
81
- name : Install Go
84
82
uses : actions/setup-go@v5
85
83
with :
86
- go-version : ${{ env.GO_VERSION }}
84
+ go-version-file : go.mod
87
85
88
86
- name : Install Python
89
87
uses : actions/setup-python@v5
Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/test-go-task.md
2
2
name : Test Go
3
3
4
- env :
5
- # See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6
- GO_VERSION : " 1.17"
7
-
8
4
# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
9
5
on :
10
6
create :
90
86
- name : Install Go
91
87
uses : actions/setup-go@v5
92
88
with :
93
- go-version : ${{ env.GO_VERSION }}
89
+ go-version-file : go.mod
94
90
95
91
- name : Install Task
96
92
uses : arduino/setup-task@v2
You can’t perform that action at this time.
0 commit comments