Mailer: Drop country in location if it's US
#192
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [ push ] | |
jobs: | |
standard: | |
name: Standard | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Run Standard | |
run: bundle exec standardrb | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:15.3 | |
ports: ["5432:5432"] | |
env: | |
POSTGRES_HOST_AUTH_METHOD: trust | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Install system dependencies | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
sudo apt-get update -yqq | |
sudo apt-get install -yqq libvips | |
- name: Run tests | |
run: bundle exec rails db:create test:all | |
env: | |
RAILS_ENV: test | |
DATABASE_URL: postgresql://[email protected]:5432 |