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 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-go-dependencies-task.md
22name : Check Go Dependencies
33
4- env :
5- # See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6- GO_VERSION : " 1.17"
7-
84# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
95on :
106 create :
8783 - name : Install Go
8884 uses : actions/setup-go@v5
8985 with :
90- go-version : ${{ env.GO_VERSION }}
86+ go-version-file : go.mod
9187
9288 - name : Install Task
9389 uses : arduino/setup-task@v2
@@ -146,7 +142,7 @@ jobs:
146142 - name : Install Go
147143 uses : actions/setup-go@v5
148144 with :
149- go-version : ${{ env.GO_VERSION }}
145+ go-version-file : go.mod
150146
151147 - name : Install Task
152148 uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-go-task.md
22name : Check Go
33
4- env :
5- # See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6- GO_VERSION : " 1.17"
7-
84# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
95on :
106 create :
7874 - name : Install Go
7975 uses : actions/setup-go@v5
8076 with :
81- go-version : ${{ env.GO_VERSION }}
77+ go-version-file : ${{ matrix.module.path }}/go.mod
8278
8379 - name : Install Task
8480 uses : arduino/setup-task@v2
@@ -117,7 +113,7 @@ jobs:
117113 - name : Install Go
118114 uses : actions/setup-go@v5
119115 with :
120- go-version : ${{ env.GO_VERSION }}
116+ go-version-file : ${{ matrix.module.path }}/go.mod
121117
122118 - name : Install Task
123119 uses : arduino/setup-task@v2
@@ -158,7 +154,7 @@ jobs:
158154 - name : Install Go
159155 uses : actions/setup-go@v5
160156 with :
161- go-version : ${{ env.GO_VERSION }}
157+ go-version-file : ${{ matrix.module.path }}/go.mod
162158
163159 - name : Install Task
164160 uses : arduino/setup-task@v2
@@ -197,7 +193,7 @@ jobs:
197193 - name : Install Go
198194 uses : actions/setup-go@v5
199195 with :
200- go-version : ${{ env.GO_VERSION }}
196+ go-version-file : ${{ matrix.module.path }}/go.mod
201197
202198 - name : Run go mod tidy
203199 working-directory : ${{ matrix.module.path }}
Original file line number Diff line number Diff line change 22name : Deploy Website
33
44env :
5- # See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6- GO_VERSION : " 1.17"
75 # See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
86 PYTHON_VERSION : " 3.9"
97
6765 - name : Install Go
6866 uses : actions/setup-go@v5
6967 with :
70- go-version : ${{ env.GO_VERSION }}
68+ go-version-file : go.mod
7169
7270 - name : Install Python
7371 uses : actions/setup-python@v5
Original file line number Diff line number Diff line change 1010 AWS_PLUGIN_TARGET : TODO_AWS_PLUGIN_TARGET
1111 AWS_REGION : " us-east-1"
1212 ARTIFACT_PREFIX : dist-
13- # See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
14- GO_VERSION : " 1.17"
1513
1614on :
1715 push :
6563 - name : Install Go
6664 uses : actions/setup-go@v5
6765 with :
68- go-version : ${{ env.GO_VERSION }}
66+ go-version-file : go.mod
6967
7068 - name : Install Task
7169 uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change 22name : Test Integration
33
44env :
5- # See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6- GO_VERSION : " 1.17"
75 # See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
86 PYTHON_VERSION : " 3.9"
97
8381 - name : Install Go
8482 uses : actions/setup-go@v5
8583 with :
86- go-version : ${{ env.GO_VERSION }}
84+ go-version-file : go.mod
8785
8886 - name : Install Python
8987 uses : actions/setup-python@v5
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/test-go-task.md
22name : Test Go
33
4- env :
5- # See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6- GO_VERSION : " 1.17"
7-
84# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
95on :
106 create :
9086 - name : Install Go
9187 uses : actions/setup-go@v5
9288 with :
93- go-version : ${{ env.GO_VERSION }}
89+ go-version-file : go.mod
9490
9591 - name : Install Task
9692 uses : arduino/setup-task@v2
You can’t perform that action at this time.
0 commit comments