Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: ShellCheck

on:
push:
branches: [main]
paths: ["**.sh"]
pull_request:
branches: [main]
paths: ["**.sh"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run ShellCheck (strictest settings)
run: |
shellcheck --version
shellcheck \
--shell=sh \
--severity=style \
--enable=all \
--external-sources \
--format=gcc \
./install.sh
92 changes: 92 additions & 0 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Test install.sh

on:
push:
branches: [main]
paths: [install.sh]
pull_request:
branches: [main]
paths: [install.sh]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
deb:
name: DEB · ${{ matrix.distro.name }}
runs-on: ubuntu-latest
container:
image: ${{ matrix.distro.image }}
options: --user root
strategy:
fail-fast: false
matrix:
distro:
- { name: debian-12, image: "debian:12" }
- { name: debian-13, image: "debian:trixie" }
- { name: ubuntu-20.04, image: "ubuntu:20.04" }
- { name: ubuntu-22.04, image: "ubuntu:22.04" }
- { name: ubuntu-24.04, image: "ubuntu:24.04" }
steps:
- name: Install curl
run: |
apt-get update
apt-get install -y curl

- uses: actions/checkout@v4

- name: Run install.sh -y
run: sh install.sh -y

- name: Verify git-fs is on PATH
run: git-fs --version

rpm:
name: RPM · ${{ matrix.distro.name }}
runs-on: ubuntu-latest
container:
image: ${{ matrix.distro.image }}
options: --user root
strategy:
fail-fast: false
matrix:
distro:
- { name: rocky-8, image: "rockylinux:8" }
- { name: rocky-9, image: "rockylinux:9" }
- { name: alma-8, image: "almalinux:8" }
- { name: alma-9, image: "almalinux:9" }
- { name: fedora-40, image: "fedora:40" }
- { name: fedora-41, image: "fedora:41" }
- { name: fedora-42, image: "fedora:42" }
- { name: fedora-43, image: "fedora:43" }
steps:
- name: Install curl and git
run: dnf install -y --allowerasing curl git

- uses: actions/checkout@v4

- name: Run install.sh -y
run: sh install.sh -y

- name: Verify git-fs is on PATH
run: git-fs --version

tarball:
name: Tarball · archlinux
runs-on: ubuntu-latest
container:
image: archlinux:latest
options: --user root
steps:
- name: Install dependencies
run: pacman -Sy --noconfirm curl git

- uses: actions/checkout@v4

- name: Run install.sh -y
run: sh install.sh -y

- name: Verify git-fs was installed
run: test -x /usr/local/bin/git-fs
Loading