Skip to content

Commit 51ebda4

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

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/CI.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
- name: Setup file system permissions
27+
run: sudo chmod -R 777 $GITHUB_WORKSPACE /github /__w/_temp
28+
- name: Get repository's content
29+
uses: actions/download-artifact@v3
30+
with:
31+
name: repo
32+
- uses: actions/cache@v3
33+
with:
34+
path: node_modules
35+
key: v1-dependencies-${{ hashFiles('**/yarn.lock') }}
36+
restore-keys: |
37+
v1-dependencies-${{ hashFiles('**/yarn.lock') }}
38+
v1-dependencies-
39+
- name: Update yarn
40+
run: |
41+
node -v
42+
yarn global add yarn@latest
43+
- name: Install dependencies
44+
run: yarn install --ignore-engines --frozen-lockfile
45+
- name: Build packages
46+
run: yarn build
47+
- name: Test
48+
run: yarn test-ci

0 commit comments

Comments
 (0)