Skip to content

Commit

Permalink
CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jul 28, 2022
1 parent 8c86ba1 commit 46762f7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,13 @@ jobs:
- name: Git Checkout
uses: actions/checkout@v2

- name: Perl Syntax
run: yast-ci-ruby -o perl_syntax
# - name: Perl Syntax
# run: yast-ci-ruby -o perl_syntax

- name: POT Check
run: rake check:pot

- name: Check Available Apache Packages
run: ./ci_package_check.sh
env:
TERM: linux
7 changes: 7 additions & 0 deletions ci_package_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Yast.import "YaPI::HTTPD"
Yast.import "YaST::HTTPDData"
Yast.import "Pkg"
Yast.import "Mode"

#
# Initialize the package manager
Expand All @@ -20,6 +21,10 @@ def init_pkg
Yast::Pkg.SourceLoad
end

def init_ui
Yast::Mode.SetUI("commandline")
end

#
# Collect all needed packages
#
Expand All @@ -35,7 +40,9 @@ def apache_packages
puts "Checking the package availability..."
puts

init_ui
init_pkg

packages = apache_packages

success = packages.reduce(true) do |acc, p|
Expand Down
5 changes: 4 additions & 1 deletion ci_package_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
set -e
make -f Makefile.cvs
make install
./ci_package_check.rb
# refresh the repositories from script, YaST wants to display
# a progress which does not work properly in GitHub Actions
zypper ref
TERM=dumb ./ci_package_check.rb

0 comments on commit 46762f7

Please sign in to comment.