chore(deps): update linters #986
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: pull-request | |
on: | |
pull_request: | |
jobs: | |
lint: | |
name: eslint & prettier | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup pnpm | |
uses: ./.github/workflows/actions/setup-pnpm | |
- name: eslint | |
run: pnpm eslint | |
- name: pettier | |
run: pnpm prettier | |
type-check: | |
name: type check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup pnpm | |
uses: ./.github/workflows/actions/setup-pnpm | |
- name: type-check | |
run: pnpm run type-check | |
tests: | |
name: tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup pnpm | |
uses: ./.github/workflows/actions/setup-pnpm | |
- name: tests | |
run: pnpm test | |
- name: Upload zod-firebase coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
directory: ./packages/zod-firebase/coverage | |
flags: firebase | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Upload zod-firebase-admin coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
directory: ./packages/zod-firebase-admin/coverage | |
flags: firebase-admin | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: integration tests | |
run: npm run test:integration:ci | |
markdown: | |
name: markdown lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DavidAnson/markdownlint-cli2-action@v17 | |
with: | |
globs: '**/*.md' |