build: 패키지 매니저를 yarn으로 전환 (#85) #96
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test coverage for pull request | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Prepare yarn | |
run: corepack enable && corepack prepare [email protected] --activate | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Run tests | |
run: yarn test:cov --maxWorkers=100% | |
- name: Coverage | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: './coverage/lcov.info' |