diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml new file mode 100644 index 0000000..f0c3310 --- /dev/null +++ b/.github/workflows/formatting.yml @@ -0,0 +1,17 @@ +name: stylua +on: + push: + branches: + - 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 .