mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-12-19 19:20:13 +01:00
ci(build): add prettier github action
This commit is contained in:
28
.github/workflows/prettier.yml
vendored
Normal file
28
.github/workflows/prettier.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: Prettier
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
pull_request:
|
||||||
|
# The branches below must be a subset of the branches above
|
||||||
|
branches: [ "main" ]
|
||||||
|
schedule:
|
||||||
|
- cron: '27 13 * * 1'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
eslint:
|
||||||
|
name: Run prettier scanning
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Prettier
|
||||||
|
run: |
|
||||||
|
npm install prettier@3.1.0
|
||||||
|
|
||||||
|
- name: Run Prettier
|
||||||
|
run: npx prettier . --check
|
||||||
Reference in New Issue
Block a user