-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 945 Bytes
/
pull-request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Pull Request
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
stylua:
name: Stylua
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Stylua
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: 2.0.2
args: --check .
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prettier
uses: creyD/prettier_action@v4.3
with:
# Options for the `prettier` command
prettier_options: --check **/*.{md,json,js}
# Running the script in dry mode just shows whether there are files that should be prettified or not
dry: true
# GitHub Token or PAT token used to authenticate against a repository
github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}