Skip to content

Commit

Permalink
ci: attempt distro testing
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Aug 24, 2023
1 parent f4061f0 commit 1ae383e
Showing 1 changed file with 45 additions and 6 deletions.
51 changes: 45 additions & 6 deletions .github/workflows/dorothy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@ name: dorothy
- pull_request
jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
env:
DOROTHY: ${{ github.workspace }}
NO_TTY: yes
VERBOSE: yes
CI_COMMIT_MESSAGE: 'ci: adjustments'
CI_COMMIT_NAME: 'Continuous Integration'
Expand Down Expand Up @@ -52,3 +47,47 @@ jobs:
run: |
source "$DOROTHY/sources/login.sh"
dorothy test
distros:
continue-on-error: true
runs-on: ubuntu-latest
strategy:
matrix:
container:
- 'ubuntu:latest' # https://hub.docker.com/_/ubuntu
- 'fedora:latest' # https://hub.docker.com/_/fedora
- 'debian:latest' # https://hub.docker.com/_/debian
- 'alpine:latest' # https://hub.docker.com/_/alpine
- 'manjarolinux/base' # https://hub.docker.com/r/manjarolinux/base
- 'archlinux:latest' # https://hub.docker.com/_/archlinux
- 'opensuse/leap' # https://hub.docker.com/r/opensuse/leap
container:
image: ${{ matrix.container }}
env:
DOROTHY: ${{ github.workspace }}
VERBOSE: 'yes'
steps:
- name: 'Dorothy Remote Tests'
run: |
if which apt-get; then
# for ubuntu
apt-get update
apt-get install -y bash curl
else if which apk; then
# for alpine
apk add bash curl
else if which zypper; then
# for opensuse
zypper install -y --no-recommends bash curl
else if which pamac; then
# for manjaro
pamac install --no-confirm bash curl
else if which pacman; then
# for arch besides manjaro
pacman -S --needed --noconfirm bash curl
else if which yum; then
# for fedora
yum install -y bash curl
fi
- name: 'Dorothy Remote Tests'
run: |
bash -ic "$(curl -fsSL https://dorothy.bevry.me/commands/dorothy)" -- test

0 comments on commit 1ae383e

Please sign in to comment.