chore: dependency-type development #50
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
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
concurrency: | |
group: '${{ github.workflow }} - ${{ github.head_ref || github.ref }}' | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
build: | |
strategy: | |
matrix: | |
node-version: [18, 20] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Setup LCOV | |
uses: hrishikesh-kadam/setup-lcov@v1 | |
- name: Enable Yarn | |
run: corepack enable | |
- name: Install Packages | |
run: yarn install | |
- name: Type Check | |
run: yarn typecheck | |
- name: Lint | |
run: yarn lint | |
- name: Test Coverage | |
run: yarn coverage | |
- name: Report Coverage | |
if: ${{ matrix.node-version == 20 }} | |
uses: zgosalvez/github-actions-report-lcov@v4 | |
with: | |
coverage-files: coverage/lcov.info | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
update-comment: true |