Skip to content

Commit 970a594

Browse files
authored
Merge pull request #1 from per1234/ci
Sync GitHub Actions workflows from templates
2 parents 967e826 + ea7153e commit 970a594

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.github/workflows/compile-examples.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ on:
44
pull_request:
55
paths:
66
- ".github/workflows/compile-examples.yml"
7+
- "library.properties"
78
- "examples/**"
89
- "src/**"
910
push:
1011
paths:
1112
- ".github/workflows/compile-examples.yml"
13+
- "library.properties"
1214
- "examples/**"
1315
- "src/**"
1416
# Scheduled trigger checks for breakage caused by changes to external resources (libraries, platforms)
@@ -22,6 +24,7 @@ on:
2224

2325
jobs:
2426
build:
27+
name: ${{ matrix.board.fqbn }}
2528
runs-on: ubuntu-latest
2629

2730
env:
@@ -53,7 +56,7 @@ jobs:
5356
run: pip3 install pyserial
5457

5558
- name: Compile examples
56-
uses: arduino/compile-sketches@main
59+
uses: arduino/compile-sketches@v1
5760
with:
5861
github-token: ${{ secrets.GITHUB_TOKEN }}
5962
platforms: ${{ matrix.platforms }}
@@ -71,4 +74,5 @@ jobs:
7174
uses: actions/upload-artifact@v3
7275
with:
7376
name: ${{ env.SKETCHES_REPORTS_PATH }}
77+
if-no-files-found: error
7478
path: ${{ env.SKETCHES_REPORTS_PATH }}

.github/workflows/report-size-deltas.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Report Size Deltas
22

33
on:
4+
push:
5+
paths:
6+
- ".github/workflows/report-size-deltas.ya?ml"
47
schedule:
58
- cron: '*/5 * * * *'
69
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#workflow_dispatch
@@ -15,7 +18,7 @@ jobs:
1518
steps:
1619
# See: https://github.com/arduino/actions/blob/master/libraries/report-size-deltas/README.md
1720
- name: Comment size deltas reports to PRs
18-
uses: arduino/report-size-deltas@main
21+
uses: arduino/report-size-deltas@v1
1922
with:
2023
# The name of the workflow artifact created by the "Compile Examples" workflow
2124
sketches-reports-source: sketches-reports

.github/workflows/spell-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121

2222
# See: https://github.com/codespell-project/actions-codespell/blob/master/README.md
2323
- name: Spell check
24-
uses: codespell-project/actions-codespell@master
24+
uses: codespell-project/actions-codespell@v1

.github/workflows/sync-labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
run: |
103103
# Use of this flag in the github-label-sync command will cause it to only check the validity of the
104104
# configuration.
105-
echo "::set-output name=flag::--dry-run"
105+
echo "flag=--dry-run" >> $GITHUB_OUTPUT
106106
107107
- name: Checkout repository
108108
uses: actions/checkout@v3

0 commit comments

Comments
 (0)