Skip to content

ci: main 브랜치에 머지했을 때도 coverage를 확인하도록 수정 #48

ci: main 브랜치에 머지했을 때도 coverage를 확인하도록 수정

ci: main 브랜치에 머지했을 때도 coverage를 확인하도록 수정 #48

Workflow file for this run

name: Test coverage for pull request
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
coverage:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test:cov -- --maxWorkers=100%
- name: Coverage
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './coverage/lcov.info'