From 9e7497c3468b62d5fc02e2cb62e58083fbc389be Mon Sep 17 00:00:00 2001 From: Michael Herold Date: Sun, 27 Jun 2021 22:28:00 -0500 Subject: 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. --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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: -- cgit v1.2.1