Skip to content

Commit 70324cf

Browse files
committed
Update workflows
1 parent 4536ac6 commit 70324cf

File tree

4 files changed

+63
-44
lines changed

4 files changed

+63
-44
lines changed

.github/workflows/linux.yml

+29-23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# brian's standard GitHub Actions Ubuntu config for Perl 5 modules
2-
# version 20240709.001
2+
# version 20240824.001
33
# https://github.com/briandfoy/github_workflows
44
# https://github.com/features/actions
55
# This file is licensed under the Artistic License 2.0
@@ -8,12 +8,18 @@
88
# in your repo settings. Or not. It still works if it isn't defined.
99
# In that environment, add whatever environment variables or secrets
1010
# that you want.
11+
---
1112
name: ubuntu
1213

1314
# https://github.com/actions/checkout/issues/1590
1415
env:
1516
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1617

18+
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/using-concurrency
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }}
21+
cancel-in-progress: true
22+
1723
on:
1824
push:
1925
branches:
@@ -48,26 +54,26 @@ jobs:
4854
environment: automated_testing
4955
runs-on: ${{ matrix.os }}
5056
strategy:
51-
matrix:
52-
os:
53-
- ubuntu-22.04
54-
perl-version:
55-
- '5.10-buster'
56-
- '5.12-buster'
57-
- '5.14-buster'
58-
- '5.16-buster'
59-
- '5.18-buster'
60-
- '5.20-buster'
61-
- '5.22-buster'
62-
- '5.24-buster'
63-
- '5.26-buster'
64-
- '5.28-buster'
65-
- '5.30-bullseye'
66-
- '5.32-bullseye'
67-
- '5.34-bullseye'
68-
- '5.36-bookworm'
69-
- '5.38-bookworm'
70-
- 'latest'
57+
matrix:
58+
os:
59+
- ubuntu-22.04
60+
perl-version:
61+
- '5.10-buster'
62+
- '5.12-buster'
63+
- '5.14-buster'
64+
- '5.16-buster'
65+
- '5.18-buster'
66+
- '5.20-buster'
67+
- '5.22-buster'
68+
- '5.24-buster'
69+
- '5.26-buster'
70+
- '5.28-buster'
71+
- '5.30-bullseye'
72+
- '5.32-bullseye'
73+
- '5.34-bullseye'
74+
- '5.36-bookworm'
75+
- '5.38-bookworm'
76+
- 'latest'
7177
container:
7278
image: perl:${{ matrix.perl-version }}
7379
steps:
@@ -99,7 +105,7 @@ jobs:
99105
run: |
100106
cpanm --notest --installdeps --with-suggests --with-recommends .
101107
- name: Show cpanm failures
102-
if: ${{ failure() }}
108+
if: ${{ failure() }}
103109
run: |
104110
cat /github/home/.cpanm/work/*/build.log
105111
- name: Run tests
@@ -137,7 +143,7 @@ jobs:
137143
- name: Run coverage tests
138144
if: env.PERL_VERSION != 'v5.8' && env.PERL_VERSION != 'v5.10'
139145
env:
140-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
146+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
141147
run: |
142148
cpanm --notest Devel::Cover Devel::Cover::Report::Coveralls
143149
perl Makefile.PL

.github/workflows/macos.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# brian's standard GitHub Actions macOS config for Perl 5 modules
2-
# version 20240709.001
2+
# version 20240824.001
33
# https://github.com/briandfoy/github_workflows
44
# https://github.com/features/actions
55
# This file is licensed under the Artistic License 2.0
@@ -8,12 +8,18 @@
88
# in your repo settings. Or not. It still works if it isn't defined.
99
# In that environment, add whatever environment variables or secrets
1010
# that you want.
11+
---
1112
name: macos
1213

1314
# https://github.com/actions/checkout/issues/1590
1415
env:
1516
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1617

18+
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/using-concurrency
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }}
21+
cancel-in-progress: true
22+
1723
on:
1824
push:
1925
branches:
@@ -112,7 +118,7 @@ jobs:
112118
- name: Run coverage tests
113119
if: env.PERL_VERSION != 'v5.8'
114120
env:
115-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116122
run: |
117123
cpan -M https://www.cpan.org -T Devel::Cover Devel::Cover::Report::Coveralls
118124
perl Makefile.PL

.github/workflows/release.yml

+13-12
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# This requires that you configure a repository secret named
1313
# RELEASE_ACTION_TOKEN with a GitHub Personal Access Token
1414
# that has "read and write" permissions on Repository/Contents
15+
---
1516
name: release
1617

1718
# https://github.com/actions/checkout/issues/1590
@@ -46,11 +47,11 @@ jobs:
4647
environment: release
4748
runs-on: ${{ matrix.os }}
4849
strategy:
49-
matrix:
50-
os:
51-
- ubuntu-20.04
52-
perl-version:
53-
- 'latest'
50+
matrix:
51+
os:
52+
- ubuntu-20.04
53+
perl-version:
54+
- 'latest'
5455
container:
5556
image: perl:${{ matrix.perl-version }}
5657
steps:
@@ -105,15 +106,15 @@ jobs:
105106
id: attestation
106107
uses: actions/attest-build-provenance@v1
107108
with:
108-
subject-path: ${{ env.ASSET_NAME }}
109+
subject-path: ${{ env.ASSET_NAME }}
109110
- name: upload
110111
uses: softprops/action-gh-release@v1
111112
with:
112-
body_path: Changes-latest
113-
draft: false
114-
prerelease: false
115-
name: ${{ steps.version.outputs.name }}
116-
files: |
113+
body_path: Changes-latest
114+
draft: false
115+
prerelease: false
116+
name: ${{ steps.version.outputs.name }}
117+
files: |
117118
${{ env.ASSET_NAME }}
118119
${{ steps.attestation.outputs.bundle-path }}
119-
token: ${{ secrets.RELEASE_ACTION_TOKEN }}
120+
token: ${{ secrets.RELEASE_ACTION_TOKEN }}

.github/workflows/windows.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# brian's standard GitHub Actions Windows config for Perl 5 modules
2-
# version 20240709.001
2+
# version 20240824.001
33
# https://github.com/briandfoy/github_workflows
44
# https://github.com/features/actions
55
# This file is licensed under the Artistic License 2.0
@@ -8,12 +8,18 @@
88
# in your repo settings. Or not. It still works if it isn't defined.
99
# In that environment, add whatever environment variables or secrets
1010
# that you want.
11+
---
1112
name: windows
1213

1314
# https://github.com/actions/checkout/issues/1590
1415
env:
1516
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1617

18+
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/using-concurrency
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }}
21+
cancel-in-progress: true
22+
1723
on:
1824
push:
1925
branches:
@@ -49,10 +55,10 @@ jobs:
4955
runs-on: ${{ matrix.os }}
5056
# store any secrets in an environment named "testing"
5157
strategy:
52-
matrix:
53-
os:
54-
- windows-2019
55-
- windows-2022
58+
matrix:
59+
os:
60+
- windows-2019
61+
- windows-2022
5662
steps:
5763
- run: git config --global core.autocrlf false
5864
- uses: actions/checkout@v3
@@ -88,7 +94,7 @@ jobs:
8894
# stuff in parallel.
8995
- name: Run tests in parallel
9096
env:
91-
HARNESS_OPTIONS: j10
97+
HARNESS_OPTIONS: j10
9298
run: |
9399
perl Makefile.PL
94100
make test
@@ -107,7 +113,7 @@ jobs:
107113
- name: Run coverage tests
108114
if: env.WINDOWS_SKIP_COVERAGE != 0
109115
env:
110-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
111117
run: |
112118
cpan -M https://www.cpan.org -T Devel::Cover Devel::Cover::Report::Coveralls
113119
perl Makefile.PL

0 commit comments

Comments
 (0)