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 192a54d commit 31e7060
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 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 @@ -28,14 +33,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 @@ -49,8 +61,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 31e7060

Please sign in to comment.