ci(github): Add stylua check for main branch

dev
nullchilly 2 years ago
parent 398b638799
commit ebc5035e8d

@ -1,17 +1,16 @@
name: stylua
on:
push:
branches:
- dev
paths-ignore:
- ".github/**"
push:
branches: ["main", "dev"]
paths-ignore:
- ".github/**"
jobs:
stylua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: JohnnyMorganz/stylua-action@1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --check --config-path=stylua.toml .
stylua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: JohnnyMorganz/stylua-action@1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --check --config-path=stylua.toml .

Loading…
Cancel
Save