Setting up ESLint Github Action #9
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: Code Quality checks | |
on: | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
prettier: | |
name: Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup Bun Runtime | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: "latest" | |
- name: Install dependencies | |
run: bun install -D | |
- name: Check formatting with Prettier | |
run: bun format:check:ci | |
eslint: | |
name: ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup Bun Runtime | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: "latest" | |
- name: Install dependencies | |
run: bun install -D | |
- name: Lint with ESLint | |
run: bun lint |