diff options
author | Abouzar Parvan <[email protected]> | 2021-07-15 05:21:32 +0430 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-14 20:51:32 -0400 |
commit | a222f4ecb8fb41a0498f891764961dcee1ddbfb8 (patch) | |
tree | 29f93896045fb73a8c23d83923fadd00dd894e13 /.github/workflows/format.yaml | |
parent | b0348376138a57859ebbf5a0ce621f69420682e9 (diff) |
Github workflows (#807)
* test github workflows
* added stylua checking as well
Diffstat (limited to '.github/workflows/format.yaml')
-rw-r--r-- | .github/workflows/format.yaml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml new file mode 100644 index 00000000..0dfbdbfa --- /dev/null +++ b/.github/workflows/format.yaml @@ -0,0 +1,28 @@ +name: format +on: + push: + branches: '**' + pull_request: + branches: + - 'master' + - 'rolling' + +jobs: + stylua-check: + name: "Formatting check with Stylua" + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - name: Prepare dependencies + run: | + sudo apt update + sudo apt install -y curl + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + cargo install stylua + + - name: Check formatting + run: | + cp ./utils/.stylua.toml . + stylua -c . + |