.github/workflows/test.yml in pact_broker-2.76.2 vs .github/workflows/test.yml in pact_broker-2.77.0
- old
+ new
@@ -1,31 +1,38 @@
name: Test
-on: push
+on: [push, pull_request]
jobs:
sqlite:
+ if: "!contains(github.event.head_commit.message, '[ci-skip]')"
runs-on: "ubuntu-latest"
- continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
ruby_version: ["2.7"]
- experimental: [false]
- include:
- - ruby_version: "3.0"
- experimental: true
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
- run: "bundle install"
- - run: "bundle exec rake"
+ - name: "Install CodeClimate Test Reporter"
+ run: |
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
+ chmod +x ./cc-test-reporter
+ - name: Tests
+ run: bundle exec rake
+ - name: Report test coverage
+ run: ./cc-test-reporter after-build --exit-code 0 || true
+ env:
+ CC_TEST_REPORTER_ID: dc2c30b67c9e2a5309e1aef699c30fdab55ba4f0e4f1beac029ba93e293835db
postgres:
+ if: "!contains(github.event.head_commit.message, '[ci-skip]')"
runs-on: "ubuntu-latest"
strategy:
+ fail-fast: false
matrix:
ruby_version: ["2.5", "2.7"]
services:
postgres:
image: postgres
@@ -49,11 +56,13 @@
- run: "bundle exec rake"
env:
DATABASE_ADAPTER: github_actions_postgres
INSTALL_PG: "true"
mysql:
+ if: "!contains(github.event.head_commit.message, '[ci-skip]')"
runs-on: "ubuntu-latest"
strategy:
+ fail-fast: false
matrix:
ruby_version: ["2.7"]
steps:
- uses: actions/checkout@v2
- run: script/test/run-rake-on-docker-compose-mysql.sh