Skip to content

Adjusted Pricing tests for the new constructor #1769

Adjusted Pricing tests for the new constructor

Adjusted Pricing tests for the new constructor #1769

name: rails_application
on:
push:
pull_request:
types: [opened, reopened]
jobs:
test:
runs-on: ubuntu-24.04
services:
postgres:
image: postgres:17-alpine
env:
POSTGRES_DB: cqrs-es-sample-with-res_test
POSTGRES_PASSWORD: secret
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3.4.6
bundler-cache: true
working-directory: rails_application
- name: Run tests
run: make -C rails_application test
env:
DATABASE_URL: "postgres://postgres:secret@localhost:5432/cqrs-es-sample-with-res_test"
RAILS_ENV: test
mutant-test:
runs-on: ubuntu-24.04
services:
postgres:
image: postgres:17-alpine
env:
POSTGRES_DB: cqrs-es-sample-with-res_test
POSTGRES_PASSWORD: secret
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3.4.6
bundler-cache: true
working-directory: rails_application
- name: Run mutant test runner
run: make -C rails_application test-mutant-runner
env:
DATABASE_URL: "postgres://postgres:secret@localhost:5432/cqrs-es-sample-with-res_test"
RAILS_ENV: test
deploy:
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: ./.github/workflows/infra.yml
with:
app_name: rails_application
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}