From 941802a298a154fb94a29d3edae3d58074832fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Luka=C5=A1=C3=ADk?= Date: Wed, 24 May 2023 13:09:26 +0200 Subject: [PATCH] chores renovate: ci --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ runtest.sh | 3 ++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..77073e1 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "3.2" + bundler-cache: true + - run: | + sudo apt-get update + sudo apt-get -y install libopenscap8 + - run: | + bundle install + - run: | + ./runtest.sh diff --git a/runtest.sh b/runtest.sh index 81b32a1..5e813fa 100755 --- a/runtest.sh +++ b/runtest.sh @@ -1,8 +1,9 @@ +#!/bin/bash set -e -o pipefail set -x rm -f openscap-*.gem -#gem build openscap.gemspec +gem build openscap.gemspec #gem install openscap-*.gem bundle exec rake test bundle exec rubocop