From fa2b58336bf73d1d73e2dd472caf353d0a175155 Mon Sep 17 00:00:00 2001 From: Matt Brictson Date: Fri, 14 Jun 2024 17:14:20 -0700 Subject: [PATCH] Reenable functional tests in CI --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05f50c14..27f0ac8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,3 +69,30 @@ jobs: bundler-cache: true - name: Run rubocop run: bundle exec rake lint + + functional: + runs-on: ubuntu-latest + strategy: + matrix: + ruby: ["2.0", "ruby"] + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: Run functional tests + run: bundle exec rake test:functional + + functional-all: + runs-on: ubuntu-latest + needs: [functional] + if: always() + steps: + - name: All tests ok + if: ${{ !(contains(needs.*.result, 'failure')) }} + run: exit 0 + - name: Some tests failed + if: ${{ contains(needs.*.result, 'failure') }} + run: exit 1