Skip to content

Setting up ESLint Github Action #10

Setting up ESLint Github Action

Setting up ESLint Github Action #10

Workflow file for this run

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