fix(deps): update dependencies (non-major) #1328
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: Automation Test | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
concurrency: | |
group: test-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: ESLint and Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Generate Prisma client | |
run: pnpm prisma generate | |
- name: Run Lint | |
run: pnpm lint | |
unit-test: | |
name: Unit Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Generate Prisma client | |
run: pnpm prisma generate | |
- name: Run Unit Test | |
run: pnpm test:coverage | |
- name: Report Coverage | |
if: github.event_name == 'pull_request' | |
uses: davelosert/vitest-coverage-report-action@v2 |