Development #235
This file contains hidden or 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: | |
# Rerun check when the PR is updated, https://stackoverflow.com/a/72408109 | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
quality: | |
name: Code Quality | |
timeout-minutes: 15 | |
runs-on: ubuntu-22.04 | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
TURBO_CACHE: remote:rw | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Install dependencies | |
run: bun install | |
- name: Check formatting | |
run: bun run prettier:check | |
- name: Linting | |
run: bun run turbo:lint |