build(deps): bump newrelic_rpm from 9.4.2 to 9.6.0 #245
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
concurrency: | |
group: '${{ github.workflow }}-${{ github.head_ref || github.run_id }}' | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- 'docs/**' | |
- 'decisions/**' | |
- '.github/workflows/docs_test.yml' | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- 'docs/**' | |
- 'decisions/**' | |
- '.github/workflows/docs_test.yml' | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
Rubocop: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/workflows/composite/setup | |
- name: Run Rubocop | |
run: bundle exec rake rubocop | |
- uses: ravsamhq/[email protected] | |
if: github.event_name == 'push' | |
with: | |
status: ${{ job.status }} | |
notify_when: 'failure' # default is 'success,failure,warnings' | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required | |
Test-Postgres: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
image: ["postgres:10", "postgres:14"] | |
services: | |
postgres: | |
image: ${{ matrix.image }} | |
env: | |
POSTGRES_PASSWORD: rootpassword | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/workflows/composite/setup | |
- name: Run tests | |
run: DB=postgres POSTGRES_CONNECTION_PREFIX="postgres://postgres:rootpassword@localhost:5432" bundle exec rake spec | |
- uses: ravsamhq/[email protected] | |
if: github.event_name == 'push' | |
with: | |
status: ${{ job.status }} | |
notify_when: 'failure' # default is 'success,failure,warnings' | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required | |
Test-Mysql: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
image: ["mysql:5.7", "mysql:8.0"] | |
services: | |
mysql: | |
image: ${{ matrix.image }} | |
env: | |
MYSQL_DATABASE: cc_test | |
MYSQL_ROOT_PASSWORD: password | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
ports: | |
- 3306:3306 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/workflows/composite/setup | |
- name: Run tests | |
run: DB=mysql MYSQL_CONNECTION_PREFIX="mysql2://root:[email protected]:3306" bundle exec rake spec | |
- uses: ravsamhq/[email protected] | |
if: github.event_name == 'push' | |
with: | |
status: ${{ job.status }} | |
notify_when: 'failure' # default is 'success,failure,warnings' | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required |