Skip to content

Commit

Permalink
Added GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jan 6, 2021
1 parent fb09d72 commit 59e8a48
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 1 deletion.
89 changes: 89 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,89 @@

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

name: CI

on: [push, pull_request]

jobs:
Tests:
runs-on: ubuntu-latest
container: registry.opensuse.org/yast/head/containers/yast-ruby:latest

steps:

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

# 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

# send the coverage report to coveralls.io
- name: Coveralls Report
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

# FIXME: Rubocop is not used here...
# Rubocop:
# runs-on: ubuntu-latest
# container: registry.opensuse.org/yast/head/containers/yast-ruby:latest

# steps:

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

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

Package:
runs-on: ubuntu-latest
container: registry.opensuse.org/yast/head/containers/yast-ruby:latest

steps:

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

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

Yardoc:
runs-on: ubuntu-latest
container: registry.opensuse.org/yast/head/containers/yast-ruby:latest

steps:

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

- name: Yardoc
run: rake check:doc

# downloading the Docker image takes some time so bundling several fast
# checks into one job avoids that overhead
Checks:
runs-on: ubuntu-latest
container: registry.opensuse.org/yast/head/containers/yast-ruby:latest

steps:

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

- 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
22 changes: 22 additions & 0 deletions .github/workflows/packages.yml
@@ -0,0 +1,22 @@

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

name: Available_Packages

on:
schedule:
# once a week (every Monday at 3AM)
- cron: "0 3 * * 1"

jobs:
Checks:
runs-on: ubuntu-latest
container: registry.opensuse.org/yast/head/containers/yast-ruby:latest

steps:

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

- name: Check Available Apache Packages
run: ./ci_package_check.sh
File renamed without changes.
2 changes: 1 addition & 1 deletion travis_package_check.sh → ci_package_check.sh
Expand Up @@ -3,4 +3,4 @@
set -e
make -f Makefile.cvs
make install
./travis_package_check.rb
./ci_package_check.rb

0 comments on commit 59e8a48

Please sign in to comment.