Skip to content

Commit

Permalink
fix: pin shellcheck version
Browse files Browse the repository at this point in the history
  • Loading branch information
jbergstroem committed Apr 20, 2021
1 parent 9a8e57d commit a1b0257
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ jobs:
shellcheck:
runs-on: ubuntu-20.04
name: shellcheck
env:
SHELLCHECK_VERSION: 0.7.2
steps:
- uses: actions/checkout@v2
- name: install shellcheck
env:
scversion: stable
run: |
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJ
sudo cp "shellcheck-${scversion}/shellcheck" /usr/local/bin/
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/v${{ env.SHELLCHECK_VERSION }}/shellcheck-v${{ env.SHELLCHECK_VERSION }}.linux.x86_64.tar.xz" | tar -xJ
sudo cp "shellcheck-v${{ env.SHELLCHECK_VERSION }}/shellcheck" /usr/local/bin/
- name: verify shell scripts
run: shellcheck hadolint.sh lib/*.sh test/*.sh
prettier:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: test
on: pull_request

env:
HADOLINT_VERSION: $(cat HADOLINT_VERSION)
BASH_UNIT_VERSION: 1.7.1

jobs:
bash_unit:
name: bash_unit
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: fetch hadolint version
run: echo "HADOLINT_VERSION=$(cat HADOLINT_VERSION)" >> ${GITHUB_ENV}
- name: install hadolint
run: |
curl -LO https://github.com/hadolint/hadolint/releases/download/v${{ env.HADOLINT_VERSION }}/hadolint-Linux-x86_64 && sudo mv hadolint-Linux-x86_64 /usr/local/bin/hadolint && sudo chmod +x /usr/local/bin/hadolint
- name: install bash_unit
env:
BASH_UNIT_VERSION: 1.7.1
run: |
curl -L https://github.com/pgrange/bash_unit/archive/refs/tags/v${{ env.BASH_UNIT_VERSION }}.tar.gz | tar xz --strip=1 -C /tmp/ && sudo mv /tmp/bash_unit /usr/local/bin
- name: output versions
Expand Down

0 comments on commit a1b0257

Please sign in to comment.