-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shellcheck and a integration test
Couldn't get fedora/redhat type containers to work. TODO. Shellcheck 2070 says: Exceptions If the strings happen to be version numbers and you're using <, or > to compare them as strings, and you consider this an acceptable thing to do, then you can ignore this warning. So I left it. The alternatives are complicated bash, or external tools that aren't always installed.
- Loading branch information
Showing
2 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Curl | Bash Test | ||
on: | ||
push: | ||
paths: | ||
- install.sh.in | ||
- .github/workflows/ci.yml | ||
# branches: [ main ] | ||
schedule: | ||
- cron: "0 0 * * 0" # weekly | ||
jobs: | ||
shellcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- run: sudo apt install -y shellcheck | ||
- run: shellcheck -S error install.sh.in | ||
|
||
curl-bash: | ||
needs: shellcheck | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
container: | ||
- "ubuntu:latest" | ||
- "ubuntu:24.10" | ||
- "ubuntu:24.04" | ||
- "ubuntu:22.04" | ||
- "ubuntu:20.04" | ||
- "debian:latest" | ||
- "debian:12" | ||
- "debian:11" | ||
- "debian:10" | ||
- "kalilinux/kali-rolling:latest" | ||
|
||
container: | ||
image: ${{ matrix.container }} | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- name: apt | ||
run: apt-get -y update && apt-get -y install curl gnupg2 gnupg gpg bc || true | ||
- name: install ${{ matrix.container }} | ||
run: bash install.sh.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters