diff options
| author | William Boman <william@redwill.se> | 2022-08-25 03:21:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-25 03:21:13 +0200 |
| commit | 0f95472f5ba2bd4a0299e53661b992d16f5ba447 (patch) | |
| tree | ec97b579980d18dd5c29cb1cd86e8132d1d389d6 /.github | |
| parent | fix(ui): fixes help menu mapping mismatch (#336) (diff) | |
| download | mason-0f95472f5ba2bd4a0299e53661b992d16f5ba447.tar mason-0f95472f5ba2bd4a0299e53661b992d16f5ba447.tar.gz mason-0f95472f5ba2bd4a0299e53661b992d16f5ba447.tar.bz2 mason-0f95472f5ba2bd4a0299e53661b992d16f5ba447.tar.lz mason-0f95472f5ba2bd4a0299e53661b992d16f5ba447.tar.xz mason-0f95472f5ba2bd4a0299e53661b992d16f5ba447.tar.zst mason-0f95472f5ba2bd4a0299e53661b992d16f5ba447.zip | |
chore: add cbfmt config (#328)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/cbfmt.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/cbfmt.yml b/.github/workflows/cbfmt.yml new file mode 100644 index 00000000..d9a5e2d9 --- /dev/null +++ b/.github/workflows/cbfmt.yml @@ -0,0 +1,33 @@ +name: cbfmt check + +on: + push: + branches: + - "main" + pull_request: + +jobs: + cbfmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Download cbfmt + run: | + mkdir /tmp/cbfmt && cd $_ + curl -fsSL -o cbfmt.tar.gz "https://github.com/lukas-reineke/cbfmt/releases/download/v0.1.4/cbfmt_linux-x86_64_v0.1.4.tar.gz" + tar --strip-components 1 -xvf cbfmt.tar.gz + mv cbfmt /usr/local/bin/ + - name: Download Stylua + run: | + mkdir /tmp/stylua && cd $_ + curl -fsSL -o stylua.zip "https://github.com/JohnnyMorganz/StyLua/releases/download/v0.14.2/stylua-linux.zip" + unzip -d /usr/local/bin stylua.zip + - name: Download Shellharden + run: | + mkdir /tmp/shellharden && cd $_ + curl -fsSL -o shellharden.tar.gz https://github.com/alsuren/cargo-quickinstall/releases/download/shellharden-4.2.0-x86_64-unknown-linux-gnu/shellharden-4.2.0-x86_64-unknown-linux-gnu.tar.gz + tar -xvf shellharden.tar.gz + mv shellharden /usr/local/bin/ + - name: Run cbfmt check + # Lua examples in README.md doesn't conform to Stylua rules, on purpose. + run: find . -name '*.md' -not -path './dependencies/*' -not -path './README.md' | xargs cbfmt --check |
