summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Herold <opensource@michaeljherold.com>2021-06-27 22:28:00 -0500
committerMichael Herold <opensource@michaeljherold.com>2021-06-27 22:48:07 -0500
commit9e7497c3468b62d5fc02e2cb62e58083fbc389be (patch)
tree1d5641c19e3624b3995c5b097a2a7fb89f320f09
parente8819816be56e92e583f09a33e48a39ae51e85fd (diff)
downloadhashie-9e7497c3468b62d5fc02e2cb62e58083fbc389be.tar.gz
Add integration tests to CI harness
We want to make sure none of our popular downstream integrations break. This ports our old Travis setup over to GitHub Actions.
-rw-r--r--.github/workflows/main.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 3ddc090..5149d9b 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -26,6 +26,23 @@ jobs:
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.github_token }}
+ integration-test:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ bundler-cache: true
+ ruby-version: 2.7
+ - name: Run integration tests
+ run: |
+ for dir in spec/integration/*; do
+ echo "testing $dir integration"
+ BUNDLE_GEMFILE=$dir/Gemfile bundle install --jobs 4 --retry 3
+ BUNDLE_GEMFILE=$dir/Gemfile bundle exec rspec $dir
+ done
+
test:
runs-on: ubuntu-latest
strategy: