File tree Expand file tree Collapse file tree 5 files changed +28
-12
lines changed Expand file tree Collapse file tree 5 files changed +28
-12
lines changed Original file line number Diff line number Diff line change 11name : Check Code Generation
22
3+ env :
4+ # See: https://github.com/actions/setup-go/tree/v2#readme
5+ GO_VERSION : " 1.16"
6+
37on :
48 push :
59 paths :
1822 - " **/*.go"
1923 - " etc/schemas/**/*.json"
2024
21- env :
22- BUILDS_ARTIFACT : build-artifacts
23-
2425jobs :
2526 test-go :
2627 runs-on : ubuntu-latest
3233 - name : Install Go
3334 uses : actions/setup-go@v2
3435 with :
35- go-version : " 1.16 "
36+ go-version : ${{ env.GO_VERSION }}
3637
3738 - name : Install Taskfile
3839 uses : arduino/setup-task@v1
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/deploy-cobra-mkdocs-versioned-poetry.md
22name : Deploy Website
33
4+ env :
5+ # See: https://github.com/actions/setup-python/tree/v2#available-versions-of-python
6+ PYTHON_VERSION : " 3.9"
7+
48on :
59 push :
610 branches :
5256 - name : Install Python
5357 uses : actions/setup-python@v2
5458 with :
55- python-version : " 3.9 "
59+ python-version : ${{ env.PYTHON_VERSION }}
5660
5761 - name : Install Poetry
5862 run : |
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/spell-check-task.md
22name : Spell Check
33
4+ env :
5+ # See: https://github.com/actions/setup-python/tree/v2#available-versions-of-python
6+ PYTHON_VERSION : " 3.9"
7+
48# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
59on :
610 push :
2226 - name : Install Python
2327 uses : actions/setup-python@v2
2428 with :
25- python-version : " 3.9 "
29+ python-version : ${{ env.PYTHON_VERSION }}
2630
2731 - name : Install Poetry
2832 run : pip install poetry
Original file line number Diff line number Diff line change 11name : Test Integration
22
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+
39on :
410 push :
511 paths :
4046 - name : Install Go
4147 uses : actions/setup-go@v2
4248 with :
43- go-version : " 1.16 "
49+ go-version : ${{ env.GO_VERSION }}
4450
4551 - name : Install Taskfile
4652 uses : arduino/setup-task@v1
5157 - name : Install Python
5258 uses : actions/setup-python@v2
5359 with :
54- python-version : " 3.9 "
60+ python-version : ${{ env.PYTHON_VERSION }}
5561
5662 - name : Install Poetry
5763 run : pip install poetry
Original file line number Diff line number Diff line change 11name : Run tests
22
3+ env :
4+ # See: https://github.com/actions/setup-go/tree/v2#readme
5+ GO_VERSION : " 1.16"
6+
37on :
48 push :
59 paths :
1822 - " **/*.go"
1923 - " **/testdata/**"
2024
21- env :
22- BUILDS_ARTIFACT : build-artifacts
23-
2425jobs :
2526 test-go :
2627 strategy :
3940 - name : Install Go
4041 uses : actions/setup-go@v2
4142 with :
42- go-version : " 1.16 "
43+ go-version : ${{ env.GO_VERSION }}
4344
4445 - name : Install Taskfile
4546 uses : arduino/setup-task@v1
You can’t perform that action at this time.
0 commit comments