Skip to content

Commit

Permalink
ci: Add asdf steps to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
trallnag committed Aug 21, 2022
1 parent 3d39239 commit 240a3b1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/tests-and-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,25 @@ jobs:

- name: Execute Pre-commit
run: poetry run pre-commit run -v --show-diff-on-failure

# ------------------------------------------------------------------------
# Asdf.

- name: Cache asdf
if: strategy.job-index == 0
uses: actions/cache@v3
with:
path: ~/.asdf
key: asdf-0

- name: Install tools with asdf
if: strategy.job-index == 0
uses: asdf-vm/actions/install@v1

- name: Run shfmt
if: strategy.job-index == 0
run: ./scripts/shfmt.sh

- name: Run shellcheck
if: strategy.job-index == 0
run: ./scripts/shellcheck.sh
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shellcheck 0.8.0
shfmt 3.5.1

0 comments on commit 240a3b1

Please sign in to comment.