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 589acec commit 6c6bdb1
Showing 1 changed file with 32 additions and 5 deletions.
37 changes: 32 additions & 5 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 }}

Rubocop:
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 @@ -47,8 +59,13 @@ jobs:

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 @@ -63,8 +80,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 @@ -78,8 +100,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 6c6bdb1

Please sign in to comment.