Compare commits

...

3 Commits

Author SHA1 Message Date
Renovate Bot
e517eb53a7 Update dependency ruby to v3.3.4
Some checks failed
Run unit tests / unit_tests (pull_request) Failing after 34s
2024-07-12 15:02:34 +00:00
26934e75cd Merge pull request 'Configure unit tests in CICD' (#4) from feat/unit-tests into main
Some checks failed
Run unit tests / unit_tests (push) Failing after 2m34s
Reviewed-on: #4
2024-07-12 15:01:18 +00:00
ee46e0fc9c Configure unit tests in CICD
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 1m9s
2024-07-12 15:11:24 +02:00
3 changed files with 36 additions and 2 deletions

34
.github/workflows/tests.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Run unit tests
on:
push:
branches:
- main
pull_request:
jobs:
unit_tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: ruby/setup-ruby@v1
- run: bundle install
- run: |
bundle exec rake db:create db:schema:load
bundle exec rspec
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres

View File

@ -1,6 +1,6 @@
source "https://rubygems.org"
ruby "3.2.0"
ruby "3.3.4"
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.1.3", ">= 7.1.3.2"

View File

@ -279,7 +279,7 @@ DEPENDENCIES
web-console
RUBY VERSION
ruby 3.2.0p0
ruby 3.3.4p94
BUNDLED WITH
2.5.6