From d7d476c628d1a42ad1a89a12ba6819a735618b77 Mon Sep 17 00:00:00 2001 From: Gabriel Nagy Date: Mon, 2 Aug 2021 14:19:12 +0300 Subject: [PATCH] Install latest shellcheck --- .github/workflows/checks.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 9d8348d..c05bad0 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -8,15 +8,17 @@ on: jobs: checks: - name: ${{ matrix.check }} + name: Run static checks runs-on: ubuntu-latest - strategy: - matrix: - check: [ shellcheck ] steps: - name: Checkout current PR uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Run ${{ matrix.check }} - run: ${{ matrix.check }} *.sh + - name: Run shellcheck + run: | + scversion="stable" # or "v0.4.7", or "latest" + wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv + sudo cp "shellcheck-${scversion}/shellcheck" /usr/bin/ + shellcheck --version + shellcheck *.sh