Skip to content

Commit f306a14

Browse files
authored
Merge pull request #432 from PeculiarVentures/donskov/ci-actions-upgrade
Update GitHub Actions to use latest versions
2 parents f085568 + e483ded commit f306a14

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

.github/workflows/library.yml

+6-17
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,22 @@ jobs:
1111
node-version: [18.x, 20.x]
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v4
1818
with:
1919
node-version: ${{ matrix.node-version }}
20-
21-
- name: Cache node modules
22-
uses: actions/cache@v3
23-
env:
24-
cache-name: cache-node-modules
25-
with:
26-
path: ~/.npm
27-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
28-
restore-keys: |
29-
${{ runner.os }}-build-${{ env.cache-name }}-
30-
${{ runner.os }}-build-
31-
${{ runner.os }}-
20+
cache: 'yarn'
3221

3322
- name: Install dependencies
34-
run: yarn
23+
run: yarn install --frozen-lockfile
3524

3625
- name: Run linter
37-
run: npm run lint
26+
run: yarn lint
3827

3928
- name: Run test with coverage
40-
run: npm run coverage
29+
run: yarn coverage
4130

4231
- name: Coveralls
4332
uses: coverallsapp/github-action@master

0 commit comments

Comments
 (0)