Skip to content

Merge pull request #25 from mbti-nf-team/feat/migration-next-14 #50

Merge pull request #25 from mbti-nf-team/feat/migration-next-14

Merge pull request #25 from mbti-nf-team/feat/migration-next-14 #50

Workflow file for this run

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 }}