Skip to content

Commit b6808c5

Browse files
committed
feat(GitHubCI): add job v18
1 parent 9f37c11 commit b6808c5

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/CI.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
on: [push, pull_request]
3+
4+
jobs:
5+
checkout_code:
6+
runs-on: ubuntu-22.04
7+
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Save repository's content as artifact
11+
uses: actions/upload-artifact@v3
12+
with:
13+
name: repo
14+
path: ${{ github.workspace }}
15+
16+
v18:
17+
runs-on: ubuntu-22.04
18+
needs: checkout_code
19+
container:
20+
image: "node:18-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

0 commit comments

Comments
 (0)