Skip to content

Commit e406d65

Browse files
committed
ci: fixup workflows
1 parent 89e0a08 commit e406d65

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

.github/workflows/lint.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ on:
88
branches:
99
- main
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build:
1316
runs-on: macos-latest
1417
steps:
15-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag: v4.1.1
1619
- name: Setup Node.js
17-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # tag: v4.0.1
1821
with:
19-
node-version: current
20-
- name: Lint
21-
run: |
22-
npm install
23-
npm run lint
22+
node-version: lts/-1
23+
- name: Install Dependencies
24+
run: npm ci
25+
- name: Run Tests
26+
run: npm run lint

.github/workflows/test.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ on:
88
branches:
99
- main
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build:
1316
runs-on: macos-latest
1417
steps:
15-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag: v4.1.1
1619
- name: Setup Node.js
17-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # tag: v4.0.1
1821
with:
19-
node-version: current
20-
- name: npm install, build, and test
21-
run: |
22-
npm install
23-
npm test
22+
node-version: lts/-1
23+
- name: Install Dependencies
24+
run: npm ci
25+
- name: Run Tests
26+
run: npm test

0 commit comments

Comments
 (0)