File tree 5 files changed +28
-12
lines changed
5 files changed +28
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : Check Code Generation
2
2
3
+ env :
4
+ # See: https://github.com/actions/setup-go/tree/v2#readme
5
+ GO_VERSION : " 1.16"
6
+
3
7
on :
4
8
push :
5
9
paths :
18
22
- " **/*.go"
19
23
- " etc/schemas/**/*.json"
20
24
21
- env :
22
- BUILDS_ARTIFACT : build-artifacts
23
-
24
25
jobs :
25
26
test-go :
26
27
runs-on : ubuntu-latest
32
33
- name : Install Go
33
34
uses : actions/setup-go@v2
34
35
with :
35
- go-version : " 1.16 "
36
+ go-version : ${{ env.GO_VERSION }}
36
37
37
38
- name : Install Taskfile
38
39
uses : arduino/setup-task@v1
Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/deploy-cobra-mkdocs-versioned-poetry.md
2
2
name : Deploy Website
3
3
4
+ env :
5
+ # See: https://github.com/actions/setup-python/tree/v2#available-versions-of-python
6
+ PYTHON_VERSION : " 3.9"
7
+
4
8
on :
5
9
push :
6
10
branches :
52
56
- name : Install Python
53
57
uses : actions/setup-python@v2
54
58
with :
55
- python-version : " 3.9 "
59
+ python-version : ${{ env.PYTHON_VERSION }}
56
60
57
61
- name : Install Poetry
58
62
run : |
Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/spell-check-task.md
2
2
name : Spell Check
3
3
4
+ env :
5
+ # See: https://github.com/actions/setup-python/tree/v2#available-versions-of-python
6
+ PYTHON_VERSION : " 3.9"
7
+
4
8
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
5
9
on :
6
10
push :
22
26
- name : Install Python
23
27
uses : actions/setup-python@v2
24
28
with :
25
- python-version : " 3.9 "
29
+ python-version : ${{ env.PYTHON_VERSION }}
26
30
27
31
- name : Install Poetry
28
32
run : pip install poetry
Original file line number Diff line number Diff line change 1
1
name : Test Integration
2
2
3
+ env :
4
+ # See: https://github.com/actions/setup-go/tree/v2#readme
5
+ GO_VERSION : " 1.16"
6
+ # See: https://github.com/actions/setup-python/tree/v2#available-versions-of-python
7
+ PYTHON_VERSION : " 3.9"
8
+
3
9
on :
4
10
push :
5
11
paths :
40
46
- name : Install Go
41
47
uses : actions/setup-go@v2
42
48
with :
43
- go-version : " 1.16 "
49
+ go-version : ${{ env.GO_VERSION }}
44
50
45
51
- name : Install Taskfile
46
52
uses : arduino/setup-task@v1
51
57
- name : Install Python
52
58
uses : actions/setup-python@v2
53
59
with :
54
- python-version : " 3.9 "
60
+ python-version : ${{ env.PYTHON_VERSION }}
55
61
56
62
- name : Install Poetry
57
63
run : pip install poetry
Original file line number Diff line number Diff line change 1
1
name : Run tests
2
2
3
+ env :
4
+ # See: https://github.com/actions/setup-go/tree/v2#readme
5
+ GO_VERSION : " 1.16"
6
+
3
7
on :
4
8
push :
5
9
paths :
18
22
- " **/*.go"
19
23
- " **/testdata/**"
20
24
21
- env :
22
- BUILDS_ARTIFACT : build-artifacts
23
-
24
25
jobs :
25
26
test-go :
26
27
strategy :
39
40
- name : Install Go
40
41
uses : actions/setup-go@v2
41
42
with :
42
- go-version : " 1.16 "
43
+ go-version : ${{ env.GO_VERSION }}
43
44
44
45
- name : Install Taskfile
45
46
uses : arduino/setup-task@v1
You can’t perform that action at this time.
0 commit comments