mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
ci: lint github actions with actionlint (#1446)
This commit is contained in:
parent
6f64aa8d84
commit
2bf9308d96
11
.github/workflows/lint.yml
vendored
11
.github/workflows/lint.yml
vendored
@ -45,3 +45,14 @@ jobs:
|
||||
|
||||
- name: Run checkstyle.py
|
||||
run: scripts/checkstyle.py
|
||||
|
||||
actionlint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Check workflow files
|
||||
uses: docker://rhysd/actionlint:1.6.23
|
||||
with:
|
||||
args: -color
|
||||
|
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@ -45,7 +45,7 @@ jobs:
|
||||
|
||||
- name: Install bats
|
||||
run: |
|
||||
git clone --depth 1 --branch "v$(grep -Eo "^\\s*bats\\s*.*$" ".tool-versions" | cut -d ' ' -f2-)" https://github.com/bats-core/bats-core.git $HOME/bats-core
|
||||
git clone --depth 1 --branch "v$(grep -Eo "^\\s*bats\\s*.*$" ".tool-versions" | cut -d ' ' -f2-)" https://github.com/bats-core/bats-core.git "$HOME/bats-core"
|
||||
echo "$HOME/bats-core/bin" >>"$GITHUB_PATH"
|
||||
|
||||
- name: Run tests
|
||||
@ -66,7 +66,7 @@ jobs:
|
||||
|
||||
- name: Install bats
|
||||
run: |
|
||||
git clone --depth 1 --branch "v$(grep -Eo "^\\s*bats\\s*.*$" ".tool-versions" | cut -d ' ' -f2-)" https://github.com/bats-core/bats-core.git $HOME/bats-core
|
||||
git clone --depth 1 --branch "v$(grep -Eo "^\\s*bats\\s*.*$" ".tool-versions" | cut -d ' ' -f2-)" https://github.com/bats-core/bats-core.git "$HOME/bats-core"
|
||||
echo "$HOME/bats-core/bin" >>"$GITHUB_PATH"
|
||||
|
||||
- name: Run tests
|
||||
|
Loading…
Reference in New Issue
Block a user