⬆️ chore(deps): Update all non-major dependencies #41
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: Unit & integration tests | |
on: | |
pull_request: | |
branches: ["main"] | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Testing | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
strategy: | |
matrix: | |
node-version: [18.16.0] | |
package: ["repository"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Init pnpm (latest) | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
- name: Use Node.js (v${{ matrix.node-version }}) | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "pnpm" | |
cache-dependency-path: pnpm-lock.yaml | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run unit & integration tests | |
run: pnpm run test | |
- name: Report Coverage | |
if: always() | |
uses: davelosert/vitest-coverage-report-action@v2 | |
with: | |
working-directory: packages/${{ matrix.package }} |