chore: update readme #18
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: Quality | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- reopened | |
- edited | |
- synchronize | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
prettier: | |
name: Prettier | |
# Don't run on the first run after creating from template. (run_number == 1). | |
if: github.run_number != 1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/composite-actions/install | |
- name: Run Prettier | |
run: pnpm prettier | |
tests: | |
name: Unit Tests | |
# Don't run on the first run after creating from template. (run_number == 1). | |
if: github.run_number != 1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/composite-actions/install | |
- name: Run tests | |
run: pnpm test | |
eslint: | |
name: ESLint | |
# Don't run on the first run after creating from template. (run_number == 1). | |
if: github.run_number != 1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/composite-actions/install | |
- name: Run ESLint | |
run: pnpm lint | |
env: | |
NODE_OPTIONS: "--max-old-space-size=4096" | |
types: | |
name: TypeScript | |
# Don't run on the first run after creating from template. (run_number == 1). | |
if: github.run_number != 1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/composite-actions/install | |
- name: Run TypeScript type check | |
run: pnpm typecheck |