Skip to content

Commit 21a80c6

Browse files
committed
chore: add workflow
1 parent f01a7ce commit 21a80c6

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/playground.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Playground Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Install Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
19+
- name: Cache dependencies
20+
uses: actions/cache@v4
21+
with:
22+
path: ./node_modules
23+
key: depends-${{ hashFiles('yarn.lock') }}
24+
25+
- name: Playground Building Test
26+
run: yarn build
27+
28+
lint:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
33+
- name: Install Node.js
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: 20
37+
38+
- name: Cache dependencies
39+
uses: actions/cache@v4
40+
with:
41+
path: ./node_modules
42+
key: depends-${{ hashFiles('yarn.lock') }}
43+
44+
- name: Install root dependencies
45+
run: yarn install --frozen-lockfile
46+
47+
- name: Playground Lint
48+
run: yarn lint

0 commit comments

Comments
 (0)