Skip to content

Commit

Permalink
Run postgres for unit/system tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hennevogel committed Nov 9, 2023
1 parent 5ec4077 commit 297c595
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
ruby-version: 3.1
bundler-cache: true
linter:
rubocop:
needs: setup
runs-on: ubuntu-latest
steps:
Expand All @@ -25,9 +25,9 @@ jobs:
with:
ruby-version: 3.1
bundler-cache: true
- name: Run linter
- name: Run rubocop
run: bundle exec rubocop
haml-linter:
haml-lint:
needs: setup
runs-on: ubuntu-latest
steps:
Expand All @@ -36,12 +36,13 @@ jobs:
with:
ruby-version: 3.1
bundler-cache: true
- name: Run linter
- name: Run haml-lint
run: bundle exec haml-lint app/views/
unit:
needs: [linter, haml-linter]
needs: [rubocop, haml-lint]
runs-on: ubuntu-latest
steps:
- uses: dentarg/postgres@v1
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
Expand All @@ -50,13 +51,17 @@ jobs:
- name: Run unit tests
run: bundle exec rake test
system:
needs: [linter, haml-linter]
needs: [rubocop, haml-lint]
runs-on: ubuntu-latest
steps:
- uses: dentarg/postgres@v1
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Run system tests
run: bundle exec rake test:system
env:
DATABASE_URL: "${{ env.POSTGRES_URL }}

0 comments on commit 297c595

Please sign in to comment.