summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJames Mills <1290234+prologic@users.noreply.github.com>2020-02-04 14:26:30 +1000
committerGitHub <noreply@github.com>2020-02-04 14:26:30 +1000
commit98eeb1ae7fc6beaac26bf0d5a5520242e6ebec10 (patch)
treec6f6a511a3198e7db50bdb9c13277778dfa27b1b /.github
parent092af680c7f42ed04082e1317f89d0f0522c9ef4 (diff)
Adds a GHA workflow to test install-required-packages (#7949)
* Fixed shellcheck warnings/errors and some legitimate bugs in ./packaging/installer/install-required-packages.sh * Fixed erroneous \ * Removed accidentally committed test.sh :D * Remove redundant redirection on grep commands * Fixed erroneous trailing gon search/replace expression * Fixed incorrect expansion of in apt-get invocation * Fixed incorrect expanasion of on other package managers too * Fixed insistent prompt search/replace (adding space) :D * Fixed (properly) handling of opts to pakage managers using a proper array and array expansion * Re-fixed: echo * Bah humbug :D * Rebased on master * Fixed erroneous \ * Added support for CentOS 8.x * Removed extra space * Rebased on centos8_deps_2 * Added GHA workflor for testing install-required-packages * Rebased on centos8_deps_3 * Only test on archlinux:latest * Add Ubuntu 16.04 and 19.04 to the matrix * Remove test.sh :)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/installer.yml75
1 files changed, 75 insertions, 0 deletions
diff --git a/.github/workflows/installer.yml b/.github/workflows/installer.yml
new file mode 100644
index 0000000000..69a6fe6c99
--- /dev/null
+++ b/.github/workflows/installer.yml
@@ -0,0 +1,75 @@
+---
+name: Installer
+on:
+ push:
+ branches:
+ - master
+ paths:
+ - 'packaging/installer/install-required-packages.sh'
+ pull_request:
+ paths:
+ - 'packaging/installer/install-required-packages.sh'
+jobs:
+ install-required-packages:
+ name: Required Packages
+ strategy:
+ matrix:
+ distro:
+ - 'alpine:3.11'
+ - 'alpine:3.10'
+ - 'alpine:3.9'
+ - 'archlinux:latest'
+ - 'centos:8'
+ - 'centos:7'
+ - 'centos:6'
+ - 'debian:buster'
+ - 'debian:jessie'
+ - 'debian:stretch'
+ - 'fedora:31'
+ - 'fedora:30'
+ - 'fedora:29'
+ - 'opensuse/leap:15.2'
+ - 'opensuse/leap:15.1'
+ - 'opensuse/leap:15.0'
+ - 'opensuse/tumbleweed:latest'
+ - 'ubuntu:20.04'
+ - 'ubuntu:19.10'
+ - 'ubuntu:19.04'
+ - 'ubuntu:18.04'
+ - 'ubuntu:16.04'
+ include:
+ - distro: 'alpine:3.11'
+ pre: 'apk add -U bash'
+ - distro: 'alpine:3.10'
+ pre: 'apk add -U bash'
+ - distro: 'alpine:3.9'
+ pre: 'apk add -U bash'
+
+ - distro: 'archlinux:latest'
+ pre: 'pacman --noconfirm -Sy grep'
+
+ - distro: 'debian:buster'
+ pre: 'apt-get update'
+ - distro: 'debian:jessie'
+ pre: 'apt-get update'
+ - distro: 'debian:stretch'
+ pre: 'apt-get update'
+
+ - distro: 'ubuntu:20.04'
+ pre: 'apt-get update'
+ - distro: 'ubuntu:19.10'
+ pre: 'apt-get update'
+ - distro: 'ubuntu:19.04'
+ pre: 'apt-get update'
+ - distro: 'ubuntu:18.04'
+ pre: 'apt-get update'
+ - distro: 'ubuntu:16.04'
+ pre: 'apt-get update'
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - name: Test installed-required-packages.sh on ${{ matrix.distro }}
+ env:
+ PRE: ${{ matrix.pre }}
+ run: |
+ docker run --rm -e PRE -v $PWD:/netdata -w /netdata ${{ matrix.distro }} /bin/sh -c '[ -n "${PRE}" ] && ${PRE}; ./packaging/installer/install-required-packages.sh --dont-wait --non-interactive'