Skip to content

Revert "file" change in Gemfile #2644

Revert "file" change in Gemfile

Revert "file" change in Gemfile #2644

Workflow file for this run

name: CI
on:
pull_request:
branches: ["*"]
push:
branches: [main]
concurrency: ci-${{ github.ref }}
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
services:
postgres:
image: postgres:13
ports: ["5432:5432"]
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
ports: ["6379:6379"]
steps:
- name: Checkout Commit
uses: actions/checkout@v3
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Cache yarn dependencies
uses: actions/cache@v3
id: cache-dependencies
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install yarn dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: yarn install --force --non-interactive --frozen-lockfile
- name: Install system dependencies
run: |
sudo apt-get -y update
sudo apt-get install -yqq libvips
- name: Standardize
run: bundle exec standardrb
- name: erb-lint
run: bundle exec erblint --lint-all
- name: i18n-tasks
run: bundle exec i18n-tasks health en
- name: Build assets
run: |
bin/rails javascript:build
bin/rails css:build
- name: Prepare database
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:password@localhost:5432/railsdevs_test
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
TZ: America/New_York
run: |
bin/rails db:create
bin/rails db:schema:load
- name: Run tests
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:password@localhost:5432/railsdevs_test
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
TZ: America/New_York
run: |
bin/rails test --fail-fast
bin/rails test:system
- name: Smoke test database seeds
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:password@localhost:5432/railsdevs_test
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
TZ: America/New_York
run: bin/rails db:reset
- name: Verify mailer previews
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:password@localhost:5432/railsdevs_test
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
TZ: America/New_York
run: bin/rails verify_mailer_previews