Skip to content

Commit

Permalink
Change workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasAapro committed Feb 27, 2024
1 parent 0aadf6c commit 25ed57d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci_decidim_meetings-locations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ concurrency:

jobs:
main:
uses: mainio/gha-decidim-module/setup-app@main
with:
use-cached-app: true
name: Tests
uses: mainio/gha-decidim-module/.github/workflows/ci_rspec.yml@main
secrets: inherit
44 changes: 44 additions & 0 deletions .github/workflows/ci_rspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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

0 comments on commit 25ed57d

Please sign in to comment.