Skip to content

Commit 822cf5a

Browse files
committed
Update Actions to all have names
... and be uniform across Actions (and how I do it on my other repos)
1 parent 777e38c commit 822cf5a

File tree

5 files changed

+58
-41
lines changed

5 files changed

+58
-41
lines changed

.github/workflows/codeql.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010

1111
jobs:
1212
analyze:
13-
name: Analyze
1413
runs-on: ubuntu-latest
14+
1515
permissions:
1616
actions: read
1717
contents: read
@@ -27,23 +27,23 @@ jobs:
2727
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
2828

2929
steps:
30-
- name: Checkout repository
31-
uses: actions/checkout@v5
32-
33-
# Initializes the CodeQL tools for scanning.
34-
- name: Initialize CodeQL
35-
uses: github/codeql-action/init@v4
36-
with:
37-
languages: ${{ matrix.language }}
38-
config-file: ./.github/codeql/codeql-config.yml
39-
# If you wish to specify custom queries, you can do so here or in a config file.
40-
# By default, queries listed here will override any specified in a config file.
41-
# Prefix the list here with "+" to use these queries and those in the config file.
42-
43-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
44-
# queries: security-extended,security-and-quality
45-
46-
- name: Perform CodeQL Analysis
47-
uses: github/codeql-action/analyze@v4
48-
with:
49-
category: "/language:${{matrix.language}}"
30+
- name: Checkout
31+
uses: actions/checkout@v5
32+
33+
# Initializes the CodeQL tools for scanning.
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/init@v4
36+
with:
37+
languages: ${{ matrix.language }}
38+
config-file: ./.github/codeql/codeql-config.yml
39+
# If you wish to specify custom queries, you can do so here or in a config file.
40+
# By default, queries listed here will override any specified in a config file.
41+
# Prefix the list here with "+" to use these queries and those in the config file.
42+
43+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
44+
# queries: security-extended,security-and-quality
45+
46+
- name: Perform CodeQL Analysis
47+
uses: github/codeql-action/analyze@v4
48+
with:
49+
category: "/language:${{matrix.language}}"

.github/workflows/coverage.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ on:
88
jobs:
99
coverage:
1010
runs-on: ubuntu-latest
11+
1112
steps:
12-
- uses: actions/checkout@v5
13+
- name: Checkout
14+
uses: actions/checkout@v5
1315

14-
- uses: pnpm/action-setup@v4
16+
- name: Setup pnpm
17+
uses: pnpm/action-setup@v4
1518

16-
- uses: ArtiomTr/jest-coverage-report-action@v2
19+
- name: Check coverage
20+
uses: ArtiomTr/jest-coverage-report-action@v2
1721
with:
1822
package-manager: pnpm

.github/workflows/eslint.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,20 @@ jobs:
2525
permissions:
2626
contents: read
2727
security-events: write
28-
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
28+
actions: read
2929

3030
steps:
31-
- name: Checkout code
31+
- name: Checkout
3232
uses: actions/checkout@v5
3333

3434
- name: Setup pnpm
3535
uses: pnpm/action-setup@v4
3636

37-
- name: Setup Node
37+
- name: Setup Node.js
3838
uses: actions/setup-node@v6
3939
with:
4040
node-version-file: '.nvmrc'
4141
registry-url: 'https://registry.npmjs.org'
42-
cache: 'pnpm'
4342

4443
- name: Install dev dependencies
4544
run: pnpm install --dev

.github/workflows/release.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10+
1011
permissions:
11-
contents: write
12+
contents: read
1213
id-token: write
1314

1415
steps:
15-
- uses: actions/checkout@v5
16+
- name: Checkout
17+
uses: actions/checkout@v5
1618

17-
- uses: pnpm/action-setup@v4
19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v4
1821

19-
- uses: actions/setup-node@v6
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v6
2024
with:
2125
node-version-file: '.nvmrc'
2226
registry-url: 'https://registry.npmjs.org'
@@ -25,15 +29,19 @@ jobs:
2529
- name: Update npm
2630
run: npm install -g npm@latest
2731

28-
- run: pnpm install
32+
- name: Install dependencies
33+
run: pnpm install
2934

30-
- run: pnpm test
35+
- name: Run tests
36+
run: pnpm test
3137
env:
3238
TWITCH_ID: ${{ secrets.TWITCH_ID }}
3339
TWITCH_SECRET: ${{ secrets.TWITCH_SECRET }}
3440

35-
- run: pnpm build
41+
- name: Build
42+
run: pnpm build
3643

37-
- run: npm publish
44+
- name: Publish
45+
run: npm publish
3846
# env:
3947
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,26 @@ on: [ push ]
55
jobs:
66
test:
77
runs-on: ubuntu-latest
8+
89
steps:
9-
- uses: actions/checkout@v5
10+
- name: Checkout
11+
uses: actions/checkout@v5
1012

11-
- uses: pnpm/action-setup@v4
13+
- name: Setup pnpm
14+
uses: pnpm/action-setup@v4
1215

13-
- uses: actions/setup-node@v6
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v6
1418
with:
1519
node-version-file: '.nvmrc'
1620
registry-url: 'https://registry.npmjs.org'
1721
cache: 'pnpm'
1822

19-
- run: pnpm install
23+
- name: Install dependencies
24+
run: pnpm install
2025

21-
- run: pnpm test
26+
- name: Run tests
27+
run: pnpm test
2228
env:
2329
TWITCH_ID: ${{ secrets.TWITCH_ID }}
2430
TWITCH_SECRET: ${{ secrets.TWITCH_SECRET }}

0 commit comments

Comments
 (0)