Skip to content

Commit

Permalink
Fixed CI - build only against Tumbleweed
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Nov 6, 2023
1 parent ebdfa0c commit f367f81
Showing 1 changed file with 24 additions and 29 deletions.
53 changes: 24 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@

# See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions

name: CI

on: [push, pull_request]
on: [ push, pull_request ]

jobs:
Tests:
Expand All @@ -12,67 +11,63 @@ jobs:
strategy:
fail-fast: false
matrix:
distro: [ "tumbleweed", "leap_latest" ]
distro: [ "tumbleweed" ]

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

steps:
- name: Git Checkout
uses: actions/checkout@v2

- name: Git Checkout
uses: actions/checkout@v2

# just for easier debugging...
- name: Inspect Installed Packages
run: rpm -qa | sort
# just for easier debugging...
- name: Inspect Installed Packages
run: rpm -qa | sort

- name: Unit Tests
run: rake test:unit
# enable code coverage reporting
env:
COVERAGE: 1
- name: Unit Tests
run: rake test:unit
# enable code coverage reporting
env:
COVERAGE: 1

Rubocop:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
distro: [ "leap_latest" ]
distro: [ "tumbleweed" ]

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

steps:
- name: Git Checkout
uses: actions/checkout@v2

- name: Git Checkout
uses: actions/checkout@v2

- name: Rubocop
run: rake check:rubocop
- name: Rubocop
run: rake check:rubocop

- name: Shellcheck
run: shellcheck docker/run.sh
- name: Shellcheck
run: shellcheck docker/run.sh

Package:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
distro: [ "tumbleweed", "leap_latest" ]
distro: [ "tumbleweed" ]

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

steps:
- name: Git Checkout
uses: actions/checkout@v2

- name: Git Checkout
uses: actions/checkout@v2

- name: Package Build
run: yast-ci-ruby -o package

- name: Package Build
run: yast-ci-ruby -o package
# No API code in this package -> no Yardoc check
# No translations in this package -> no pot check
# No Perl code in this package -> no Perl syntax check

0 comments on commit f367f81

Please sign in to comment.