feat: add Prettier config (#91) #5
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: Main | |
'on': | |
merge_group: | |
push: | |
branches: [main, 'renovate/**'] | |
pull_request: | |
types: [opened, synchronize, ready_for_review, reopened] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.head_ref }} | |
- name: Install mise | |
env: | |
MISE_VERSION: 2024.8.7 # renovate: datasource=github-releases packageName=jdx/mise | |
uses: jdx/mise-action@v2 | |
with: | |
version: ${{ env.MISE_VERSION }} | |
- name: 💅🏽 Run Prettier | |
run: | | |
# Install our Prettier config and check formatting | |
npm install @bfra.me/[email protected] | |
npx [email protected] --no-color --check .devcontainer .dotfiles .github |