-
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 some integration tests
And fix the Errors that shellcheck found. runs curl | bash installer on a handful of containers for distros that we support. The fedora/redhat type distros don't put systemd in their containers, or the containers otherwise don't work the way we expect the real os to, so they aren't in the test matrix.
- Loading branch information
Showing
2 changed files
with
51 additions
and
7 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,43 @@ | ||
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: apt | ||
run: apt-get -y update && apt-get -y install curl gnupg2 gnupg gpg || true | ||
- name: install ${{ matrix.container }} | ||
run: curl -s https://install.zerotier.com | bash |
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