chore: Configure Renovate #29
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: Lint | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Run linters | |
uses: sibiraj-s/action-eslint@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
eslint-args: '--quiet' | |
annotations: true | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Run formatters | |
run: 'bunx prettier --check "src/**/*.{js,ts,html,svelte,css}" --ignore-path ./.prettierignore' | |
- name: Check if files are formatted correctly | |
if: failure() | |
run: echo "Some files are not formatted correctly. Please run 'bun run format' to fix them." |