Add missing permissions to publish job #113
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: Check formatting | |
on: | |
push: | |
pull_request: | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check Ruff linting | |
uses: chartboost/ruff-action@v1 | |
with: | |
args: 'check' | |
- name: Check Ruff formatting | |
if: success() || failure() | |
uses: chartboost/ruff-action@v1 | |
with: | |
args: 'format --check' | |
- name: Check Prettier formatting | |
if: success() || failure() | |
uses: creyD/[email protected] | |
with: | |
prettier_version: '2.8.8' | |
dry: true | |
prettier_options: '--check .' |