-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (41 loc) · 1.07 KB
/
node.js.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
name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: yarn --frozen-lockfile
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Unit Test
run: yarn test:unit -ci
- name: Test
run: yarn test:e2e --headless
- uses: codecov/codecov-action@v4
if: ${{ matrix.node-version == '18.x' }}
- uses: actions/upload-artifact@v4
with:
name: recordings-e2e-${{ matrix.node-version }}
path: tests/e2e/videos/
retention-days: 7
- name: Deploy
if: ${{ github.event_name == 'push' && matrix.node-version == '18.x' }}
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist