Skip to content

Commit af0d977

Browse files
committed
feat: build the playground, with the plugin installed, in the pipeline
1 parent a0926ff commit af0d977

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
- develop
11+
12+
jobs:
13+
test:
14+
name: 'test'
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
node: [18, 20]
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node }}
24+
cache: 'yarn'
25+
- name: Install dependencies plugin
26+
run: yarn --no-lockfile --unsafe-perm
27+
- name: Push the package to yalc
28+
run: yarn build
29+
- name: Add yalc package to the playground
30+
run: yarn playground:yalc-add
31+
- name: Install dependencies playground
32+
run: cd playground && yarn install --unsafe-perm
33+
- name: Build playground
34+
run: yarn playground:build

0 commit comments

Comments
 (0)