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 d945123
Showing 1 changed file with 44 additions and 6 deletions.
50 changes: 44 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,46 @@ 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'
shell: bash
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 grep
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 cur
else if which pacman; then
# for arch besides manjaro
pacman -S --needed --noconfirm bash curl git
else if which yum; then
# for fedora
yum install -y bash curl
fi
bash -ic "$(curl -fsSL https://dorothy.bevry.me/commands/dorothy)" -- test

0 comments on commit d945123

Please sign in to comment.