Skip to content

Change workflow

Change workflow #2

Workflow file for this run

name: "[CI] RSpec"
on:
push:
branches:
- develop
- main
- release/*
pull_request:
env:
CI: "true"
CODECOV: "true"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
main:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 60
services:
postgres:
image: postgres:14
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_PASSWORD: postgres
env:
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
DATABASE_HOST: localhost
steps:
- uses: mainio/gha-decidim-module/setup-app@main
with:
use-cached-app: true
- uses: mainio/gha-decidim-module/test-rspec@main
with:
use-cached-app: true