Enable azure rbac deployment on all services #3580
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: Test | |
on: | |
push: | |
branches: | |
- "**" | |
jobs: | |
rspec: | |
name: Rspec | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_USER: postgres | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-retries 5 | |
--health-timeout 5s | |
redis: | |
image: redis | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
env: | |
DATABASE_URL: postgres://postgres:postgres@localhost:5432/find_a_lost_trn_test | |
RAILS_ENV: test | |
RAILS_MASTER_KEY: ${{secrets.RAILS_MASTER_KEY}} | |
REDIS_URL: redis://localhost:6379/0 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Prepare application environment | |
uses: ./.github/actions/prepare-app-env | |
- name: Build frontend | |
run: bin/rails assets:precompile | |
- name: Setup DB | |
run: bin/rails db:prepare | |
- name: Run tests | |
run: bin/bundle exec rspec --format documentation |