Skip to content

Commit 23eda5f

Browse files
authored
Merge pull request #64 from per1234/sync-assets
Make general adjustments to project infrastructure for sync with "template" assets
2 parents cd44b7d + 538e5ae commit 23eda5f

16 files changed

+122
-35
lines changed

.codespellrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check/.codespellrc
12
# See: https://github.com/codespell-project/codespell#using-a-config-file
23
[codespell]
34
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-python/.flake8
12
# See: https://flake8.pycqa.org/en/latest/user/configuration.html
3+
# The code style defined in this file is the official standardized style to be used in all Arduino tooling projects and
4+
# should not be modified.
25

36
[flake8]
47
doctests = True

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ version: 2
33

44
updates:
55
# Configure check for outdated GitHub Actions actions in workflows.
6+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/dependabot/README.md
67
# See: https://docs.github.com/en/code-security/supply-chain-security/keeping-your-actions-up-to-date-with-dependabot
78
- package-ecosystem: github-actions
89
directory: / # Check the repository's workflows under /.github/workflows/

.github/workflows/check-go.yml renamed to .github/workflows/check-go-task.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
name: Check Go
22

3+
env:
4+
# See: https://github.com/actions/setup-go/tree/v2#readme
5+
GO_VERSION: "1.14"
6+
37
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
48
on:
59
push:
610
paths:
7-
- ".github/workflows/check-go.yml"
11+
- ".github/workflows/check-go-task.yml"
812
- "Taskfile.yml"
913
- "go.mod"
1014
- "go.sum"
1115
- "**.go"
1216
pull_request:
1317
paths:
14-
- ".github/workflows/check-go.yml"
18+
- ".github/workflows/check-go-task.yml"
1519
- "Taskfile.yml"
1620
- "go.mod"
1721
- "go.sum"
@@ -30,6 +34,11 @@ jobs:
3034
- name: Checkout repository
3135
uses: actions/checkout@v2
3236

37+
- name: Install Go
38+
uses: actions/setup-go@v2
39+
with:
40+
go-version: ${{ env.GO_VERSION }}
41+
3342
- name: Install Task
3443
uses: arduino/setup-task@v1
3544
with:
@@ -46,6 +55,11 @@ jobs:
4655
- name: Checkout repository
4756
uses: actions/checkout@v2
4857

58+
- name: Install Go
59+
uses: actions/setup-go@v2
60+
with:
61+
go-version: ${{ env.GO_VERSION }}
62+
4963
- name: Install Task
5064
uses: arduino/setup-task@v1
5165
with:
@@ -65,6 +79,11 @@ jobs:
6579
- name: Checkout repository
6680
uses: actions/checkout@v2
6781

82+
- name: Install Go
83+
uses: actions/setup-go@v2
84+
with:
85+
go-version: ${{ env.GO_VERSION }}
86+
6887
- name: Install Task
6988
uses: arduino/setup-task@v1
7089
with:
@@ -81,6 +100,11 @@ jobs:
81100
- name: Checkout repository
82101
uses: actions/checkout@v2
83102

103+
- name: Install Go
104+
uses: actions/setup-go@v2
105+
with:
106+
go-version: ${{ env.GO_VERSION }}
107+
84108
- name: Install Task
85109
uses: arduino/setup-task@v1
86110
with:
@@ -100,6 +124,11 @@ jobs:
100124
- name: Checkout repository
101125
uses: actions/checkout@v2
102126

127+
- name: Install Go
128+
uses: actions/setup-go@v2
129+
with:
130+
go-version: ${{ env.GO_VERSION }}
131+
103132
- name: Run go mod tidy
104133
run: go mod tidy
105134

.github/workflows/check-license.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-license.md
12
name: Check License
23

34
env:

.github/workflows/check-prettier-formatting-task.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-prettier-formatting-task.md
12
name: Check Prettier Formatting
23

34
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows

.github/workflows/check-python-task.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-python-task.md
12
name: Check Python
23

4+
env:
5+
# See: https://github.com/actions/setup-python/tree/v2#available-versions-of-python
6+
PYTHON_VERSION: "3.9"
7+
38
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
49
on:
510
push:
@@ -36,7 +41,7 @@ jobs:
3641
- name: Install Python
3742
uses: actions/setup-python@v2
3843
with:
39-
python-version: "3.9"
44+
python-version: ${{ env.PYTHON_VERSION }}
4045

4146
- name: Install Poetry
4247
run: pip install poetry
@@ -60,7 +65,7 @@ jobs:
6065
- name: Install Python
6166
uses: actions/setup-python@v2
6267
with:
63-
python-version: "3.9"
68+
python-version: ${{ env.PYTHON_VERSION }}
6469

6570
- name: Install Poetry
6671
run: pip install poetry

.github/workflows/check-taskfiles.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-taskfiles.md
12
name: Check Taskfiles
23

34
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Create Release
22

3+
env:
4+
# See: https://github.com/actions/setup-go/tree/v2#readme
5+
GO_VERSION: "1.14"
6+
37
on:
48
push:
59
tags:
@@ -23,7 +27,7 @@ jobs:
2327
with:
2428
fetch-depth: 0
2529

26-
- name: Install Taskfile
30+
- name: Install Task
2731
uses: arduino/setup-task@v1
2832
with:
2933
repo-token: ${{ secrets.GITHUB_TOKEN }}
@@ -32,7 +36,7 @@ jobs:
3236
- name: Install Go
3337
uses: actions/setup-go@v2
3438
with:
35-
go-version: "1.14"
39+
go-version: ${{ env.GO_VERSION }}
3640

3741
- name: Build project
3842
run: task build

.github/workflows/spell-check-task.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/spell-check-task.md
12
name: Spell Check
23

4+
env:
5+
# See: https://github.com/actions/setup-python/tree/v2#available-versions-of-python
6+
PYTHON_VERSION: "3.9"
7+
38
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
49
on:
510
push:
@@ -21,7 +26,7 @@ jobs:
2126
- name: Install Python
2227
uses: actions/setup-python@v2
2328
with:
24-
python-version: "3.9"
29+
python-version: ${{ env.PYTHON_VERSION }}
2530

2631
- name: Install Poetry
2732
run: pip install poetry

0 commit comments

Comments
 (0)