refactor: use ubuntu-latest runner for better compatibility
Some checks failed
Bash Syntax Check / syntax-check (push) Failing after 2s
Some checks failed
Bash Syntax Check / syntax-check (push) Failing after 2s
This commit is contained in:
@@ -19,7 +19,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
syntax-check:
|
syntax-check:
|
||||||
runs-on: linux,x86_64,docker
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
run: |
|
run: |
|
||||||
@@ -31,11 +31,7 @@ jobs:
|
|||||||
- name: Install shellcheck
|
- name: Install shellcheck
|
||||||
run: |
|
run: |
|
||||||
echo "Installing shellcheck..."
|
echo "Installing shellcheck..."
|
||||||
if command -v apk >/dev/null 2>&1; then
|
sudo apt-get update && sudo apt-get install -y shellcheck
|
||||||
apk add --no-cache shellcheck
|
|
||||||
elif command -v apt-get >/dev/null 2>&1; then
|
|
||||||
apt-get update && apt-get install -y shellcheck
|
|
||||||
fi
|
|
||||||
echo "✓ shellcheck installed"
|
echo "✓ shellcheck installed"
|
||||||
|
|
||||||
- name: Run bash syntax check
|
- name: Run bash syntax check
|
||||||
|
|||||||
Reference in New Issue
Block a user