From e42f4a1be81c5fcec1b1d7b7d16abd01aafe36df Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Thu, 19 Oct 2023 14:27:53 -0300 Subject: [PATCH] ci: add linting workflow --- .github/workflows/lint.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..cfd905f --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,18 @@ +name: Lint + +on: + pull_request: + +jobs: + sanity-checks: + runs-on: ubuntu-latest + steps: + - name: Check workflow files + env: + ACTIONLINT_VSN: 1.6.25 + run: | + wget https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VSN}/actionlint_${ACTIONLINT_VSN}_linux_amd64.tar.gz + tar zxf actionlint_${ACTIONLINT_VSN}_linux_amd64.tar.gz actionlint + # TODO: enable shellcheck when all the current issues are fixed + ./actionlint -color \ + -shellcheck=