Skip to content

Commit 95f20a1

Browse files
committed
ci: update GitHub Actions
1 parent 7d8af60 commit 95f20a1

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
build:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-node@v3
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
1212
with:
13-
node-version: '14.x'
13+
node-version: '20.x'
1414
- name: Install dependencies
1515
run: yarn
1616
- name: Build

.github/workflows/test.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [14.x, 16.x]
11+
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 }}
2020

@@ -28,10 +28,10 @@ jobs:
2828

2929
- name: Get yarn cache directory path
3030
id: yarn-cache-dir-path
31-
run: echo "::set-output name=dir::$(yarn cache dir)"
32-
33-
- uses: actions/cache@v3
34-
id: yarn-cache
31+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
32+
33+
- uses: actions/cache@v4
34+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
3535
with:
3636
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
3737
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@@ -44,13 +44,5 @@ jobs:
4444
- name: Run test with coverage
4545
run: npm run coverage
4646

47-
# Fixes problem with incorrect SF paths. See https://github.com/coverallsapp/github-action/issues/125
48-
- name: Update lcov.info
49-
run: |
50-
sed -E "s/SF:(.+file:(.+))/SF:\2/g" ./coverage/lcov.info > coverage/lcov.new.info
51-
mv ./coverage/lcov.new.info ./coverage/lcov.info
52-
5347
- name: Coveralls
54-
uses: coverallsapp/github-action@master
55-
with:
56-
github-token: ${{ secrets.GITHUB_TOKEN }}
48+
uses: coverallsapp/github-action@v2

0 commit comments

Comments
 (0)