Skip to content

Add participants list view and tests for hooks #60

Add participants list view and tests for hooks

Add participants list view and tests for hooks #60

Workflow file for this run

---
name: Run CI Process for the app
on: [workflow_call, push, pull_request, workflow_dispatch]
jobs:
test:
name: Run Tests and Build
runs-on: ubuntu-latest
environment: test
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup and Run Tests
run: |
docker-compose build
docker-compose run web rake db:setup
docker-compose run web rspec
env:
RAILS_ENV: test
POSTGRES_HOST: 127.0.0.1
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
DATABASE_PASSWORD: postgres
#name: Test
#on: [push, pull_request]
#jobs:
# rspec:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Setup and Run Tests
# - run: |
# docker-compose build
# docker-compose run web rake db:setup
# docker-compose run web rspec
# env:
# RAILS_ENV: test
# POSTGRES_HOST: 127.0.0.1
# POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
# DATABASE_PASSWORD: postgres
# Action v2
# - uses: ruby/setup-ruby@v1
# with: { bundler-cache: true }
# - run: rspec
#
# services:
# postgres:
# image: postgres:14.5
# ports: [ 5432 ]
# env:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# options: >-
# --health-cmd pg_isready
# --health-timeout 1s
# --health-retries 10