generated from mbti-nf-team/nextjs-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.06 KB
/
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
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
continuous-integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: yarn install --immutable
- name: Check Lint
if: ${{ github.event_name == 'pull_request' }}
run: yarn lint
- name: Check Unit Test
run: yarn test:coverage
# - name: Set unit test coverage
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# fail_ci_if_error: true
# - name: Check e2e Test
# uses: cypress-io/github-action@v5
# with:
# install-command: yarn install
# command: yarn test:e2e
# env:
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}