Skip to content

Commit 4d76dbb

Browse files
committed
feat(GitHubCI): add job v16
1 parent 712e6e8 commit 4d76dbb

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/CI.yml

+35
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,41 @@ jobs:
1313
name: repo
1414
path: ${{ github.workspace }}
1515

16+
v16:
17+
runs-on: ubuntu-22.04
18+
needs: checkout_code
19+
container:
20+
image: "node:16-buster"
21+
steps:
22+
- name: Install sudo
23+
run: |
24+
apt update
25+
apt install -y sudo
26+
# workaround for https://github.com/actions/runner/issues/2033
27+
- name: ownership workaround
28+
run: git config --global --add safe.directory '*'
29+
- name: Get repository's content
30+
uses: actions/download-artifact@v3
31+
with:
32+
name: repo
33+
- uses: actions/cache@v3
34+
with:
35+
path: node_modules
36+
key: v1-dependencies-${{ hashFiles('**/yarn.lock') }}
37+
restore-keys: |
38+
v1-dependencies-${{ hashFiles('**/yarn.lock') }}
39+
v1-dependencies-
40+
- name: Update yarn
41+
run: |
42+
node -v
43+
yarn global add yarn@latest
44+
- name: Install dependencies
45+
run: yarn install --ignore-engines --frozen-lockfile
46+
- name: Build packages
47+
run: yarn build
48+
- name: Test
49+
run: yarn test-ci
50+
1651
v18:
1752
runs-on: ubuntu-22.04
1853
needs: checkout_code

0 commit comments

Comments
 (0)