Skip to content

Commit

Permalink
Added build matrix to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jan 12, 2022
1 parent 660c30a commit f718c4c
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ on: [push, pull_request]
jobs:
Tests:
runs-on: ubuntu-latest

strategy:
matrix:
distro: [ "tumbleweed", "leap_latest" ]

container:
image: registry.opensuse.org/yast/head/containers/yast-ruby:latest
image: registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby

steps:

Expand All @@ -35,14 +40,21 @@ jobs:

# send the coverage report to coveralls.io
- name: Coveralls Report
# send it only from the TW build to avoid duplicate submits
if: ${{ matrix.distro == 'tumbleweed' }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

Package:
runs-on: ubuntu-latest

strategy:
matrix:
distro: [ "tumbleweed", "leap_latest" ]

container:
image: registry.opensuse.org/yast/head/containers/yast-ruby:latest
image: registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby

steps:

Expand All @@ -61,8 +73,13 @@ jobs:

Yardoc:
runs-on: ubuntu-latest

strategy:
matrix:
distro: [ "leap_latest" ]

container:
image: registry.opensuse.org/yast/head/containers/yast-ruby:latest
image: registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby

steps:

Expand All @@ -76,8 +93,13 @@ jobs:
# checks into one job avoids that overhead
Checks:
runs-on: ubuntu-latest

strategy:
matrix:
distro: [ "leap_latest" ]

container:
image: registry.opensuse.org/yast/head/containers/yast-ruby:latest
image: registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby

steps:

Expand Down

0 comments on commit f718c4c

Please sign in to comment.