diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..312fcb9 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +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: ./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