chore: replace environment variables with package.json
entries
#1571
Workflow file for this run
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: PR checker | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
push: | |
branches: | |
- main | |
# This is to avoid running multiple actions when a PR is updated repeatedly. See | |
# https://docs.github.com/en/actions/using-jobs/using-concurrency | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
name: Install PNPM | |
id: pnpm-install | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Lint | |
run: pnpm run lint:ci | |
- name: Types | |
run: pnpm run types:check | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
name: Install PNPM | |
id: pnpm-install | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Tests | |
run: pnpm run test | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: coverage/clover.xml | |
format: | |
name: Biome Lint | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Biome | |
uses: biomejs/setup-biome@v2 | |
- name: Run Biome | |
run: biome ci --reporter=github |