Skip to content

record sent emails #1026

record sent emails

record sent emails #1026

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 4.0.2
- uses: actions/cache@v4
with:
path: vendor/bundle
key: gems-build-rails-main-ruby-4.0.2-${{ hashFiles('**/Gemfile.lock') }}
- name: Lint with standard
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundle exec standardrb
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@master
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y imagemagick
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 4.0.2
- uses: actions/cache@v4
with:
path: vendor/bundle
key: gems-build-rails-main-ruby-4.0.2-${{ hashFiles('**/Gemfile.lock') }}
- name: Run tests
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundle exec rake db:test:prepare
bundle exec rake
env:
RAILS_ENV: test
TIMEFRAME_HOME_ASSISTANT_TOKEN: "ci-test-token"
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres