Skip to content

Commit 4a9387c

Browse files
committed
1 parent 9f9baf3 commit 4a9387c

File tree

3 files changed

+1571
-16
lines changed

3 files changed

+1571
-16
lines changed

.github/workflows/continuous-integration.yml

+36-16
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ on:
99
schedule:
1010
- cron: '0 2 * * 1' # At 02:00 on Monday
1111

12-
env:
13-
NODE_OPTIONS: --max-old-space-size=4096
12+
permissions: {}
1413

1514
jobs:
1615
test:
@@ -19,36 +18,46 @@ jobs:
1918
strategy:
2019
matrix:
2120
os: [ubuntu-latest]
22-
node-version: [16, 18]
21+
node-version: [16, 18, 20]
2322
include:
2423
- os: macos-latest
25-
node-version: 16 # LTS
24+
node-version: 20 # LTS
25+
- os: window-latest
26+
node-version: 20 # LTS
2627
fail-fast: false
2728
runs-on: ${{ matrix.os }}
2829
steps:
29-
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
30+
- uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
31+
if: ${{ strategy.os == 'ubuntu-latest' }}
32+
with:
33+
egress-policy: audit
34+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3035
with:
3136
fetch-depth: 0
3237
- name: Use Node.js ${{ matrix.node-version }}
33-
uses: actions/setup-node@v3
38+
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
3439
with:
3540
node-version: ${{ matrix.node-version }}
3641
- name: Bootstrap project
3742
run: |
3843
npm ci --ignore-scripts
39-
- uses: Yuri6037/[email protected]
44+
- uses: Yuri6037/Action-FakeTTY@1abc69c7d530815855caedcd73842bae5687c1a6 # v1.1
4045
- name: Run tests
4146
run: faketty npm test --ignore-scripts
4247

4348
code-lint:
4449
name: Code Lint
4550
runs-on: ubuntu-latest
4651
steps:
47-
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
48-
- name: Use Node.js 16
49-
uses: actions/setup-node@v3
52+
- uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
53+
if: ${{ strategy.os == 'ubuntu-latest' }}
54+
with:
55+
egress-policy: audit
56+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
57+
- name: Use Node.js 20
58+
uses: actions/setup-node@v4
5059
with:
51-
node-version: 16
60+
node-version: 20
5261
- name: Bootstrap project
5362
run: |
5463
npm ci --ignore-scripts
@@ -60,15 +69,26 @@ jobs:
6069
runs-on: ubuntu-latest
6170
if: ${{ github.event.pull_request }}
6271
steps:
63-
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
72+
- uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
73+
if: ${{ strategy.os == 'ubuntu-latest' }}
74+
with:
75+
egress-policy: audit
76+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
6477
with:
6578
fetch-depth: 0
66-
- name: Use Node.js 16
67-
uses: actions/setup-node@v3
79+
- name: Use Node.js 20
80+
uses: actions/setup-node@v4
6881
with:
69-
node-version: 16
82+
node-version: 20
7083
- name: Bootstrap project
7184
run: |
7285
npm ci --ignore-scripts
7386
- name: Verify commit linting
74-
run: npx commitlint --from origin/master --to HEAD --verbose
87+
run: |
88+
npm run \
89+
--no-install \
90+
commitlint \
91+
--from origin/master \
92+
--to HEAD \
93+
--verbose
94+

0 commit comments

Comments
 (0)