Skip to content

Commit c88cca9

Browse files
authored
Update CI workflows with latest action versions (#356)
1 parent 39381c3 commit c88cca9

File tree

3 files changed

+18
-43
lines changed

3 files changed

+18
-43
lines changed

.github/workflows/ci.yml

+14-40
Original file line numberDiff line numberDiff line change
@@ -23,65 +23,39 @@ jobs:
2323
check_and_build:
2424
name: Check and build codebase
2525
runs-on: ubuntu-latest
26-
strategy:
27-
matrix:
28-
node-version: [12.x, 14.x, 16.x]
2926
steps:
30-
- uses: actions/checkout@v2
31-
- uses: actions/setup-node@v2
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-node@v4
3229
with:
33-
node-version: ${{ matrix.node-version }}
30+
cache: 'yarn'
31+
node-version: 18
3432

35-
- name: Get Yarn Cache Directory Path
36-
id: cache-dir-path
37-
run: echo "::set-output name=dir::$(yarn cache dir)"
38-
39-
- name: Use Yarn Cache
40-
uses: actions/cache@v2
41-
id: cache
42-
with:
43-
path: ${{ steps.cache-dir-path.outputs.dir }}
44-
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }}
45-
46-
- name: Installation ${{ matrix.node-version }}
33+
- name: Installation
4734
run: yarn --prefer-offline --frozen-lockfile --non-interactive
4835

49-
- name: Check Code ${{ matrix.node-version }}
36+
- name: Check Code
5037
run: yarn check:ci
5138

52-
- name: Build Core ${{ matrix.node-version }}
39+
- name: Build Core
5340
run: yarn build
5441

55-
- name: Check size ${{ matrix.node-version }}
42+
- name: Check size
5643
run: yarn size
5744

5845
code_coverage:
5946
name: Check code coverage
6047
runs-on: ubuntu-latest
61-
strategy:
62-
matrix:
63-
node-version: [16.x]
6448
steps:
65-
- uses: actions/checkout@v2
66-
- uses: actions/setup-node@v2
67-
with:
68-
node-version: ${{ matrix.node-version }}
69-
70-
- name: Get Yarn Cache Directory Path
71-
id: cache-dir-path
72-
run: echo "::set-output name=dir::$(yarn cache dir)"
73-
74-
- name: Use Yarn Cache
75-
uses: actions/cache@v2
76-
id: cache
49+
- uses: actions/checkout@v4
50+
- uses: actions/setup-node@v4
7751
with:
78-
path: ${{ steps.cache-dir-path.outputs.dir }}
79-
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }}
52+
cache: 'yarn'
53+
node-version: 18
8054

81-
- name: Installation ${{ matrix.node-version }}
55+
- name: Installation
8256
run: yarn --prefer-offline --frozen-lockfile --non-interactive
8357

84-
- name: Build Code Coverage ${{ matrix.node-version }}
58+
- name: Build Code Coverage
8559
run: yarn test:cover
8660

8761
- name: Coveralls

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ jobs:
1616
packages: write
1717
pull-requests: write
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
with:
2121
token: ${{ secrets.CHANGESETS_TOKEN }}
2222

23-
- uses: actions/setup-node@v3
23+
- uses: actions/setup-node@v4
2424
with:
25+
cache: 'yarn'
2526
node-version: 18
2627

2728
- name: Install dependencies

.github/workflows/size.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
env:
77
CI_JOB_NUMBER: 1
88
steps:
9-
- uses: actions/checkout@v1
9+
- uses: actions/checkout@v4
1010
- uses: andresz1/size-limit-action@v1
1111
with:
1212
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)