Merge pull request #39 from Kefaku/main #542
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 | |
on: | |
push: | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: | | |
pnpm i | |
- name: Run Lint | |
run: | | |
pnpm lint:all | |
format: | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: | | |
pnpm i | |
- name: Prettier Action | |
uses: creyD/[email protected] | |
with: | |
commit_message: "yo code so ugly the bot had to fix it 💀" | |
prettier_options: --config .prettierrc --write ./{src,tests}/**/*.{svelte,ts} | |
permissions: | |
contents: write | |
concurrency: | |
group: build-and-test | |
cancel-in-progress: true |