-
Notifications
You must be signed in to change notification settings - Fork 34
56 lines (56 loc) · 1.57 KB
/
node-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
jobs:
test-build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: pnpm/action-setup@v2
with:
version: 9
- name: Use Node.js 21.x
uses: actions/setup-node@v4
with:
node-version: 21.x
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright
run: npx playwright install --with-deps
- name: Lint code
run: pnpm run lint:js
- name: Lint styles
run: pnpm run lint:styles
- name: i18n check (en-US, fr only)
run: pnpm run check:i18n-en-fr
- name: Type check
run: pnpm run typescript
- name: Run unit tests
run: pnpm run unit
- name: Build Storybook
run: pnpm run build-storybook --quiet
- name: Serve Storybook and run test runner
# env:
# ONLY_RUN: SNAPSHOTS
run: |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 5555 --silent" \
"npx wait-on tcp:5555 && pnpm run test-storybook --ci"
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Semantic Release
run: pnpm run semantic-release
name: Node.js CI
"on":
pull_request: null
push:
branches:
- master
- alpha
- beta
- next
- next-major
- "[0-9]+.[0-9]+.x"
- "[0-9]+.x.x"
- "[0-9]+.x"