Skip to content

Production fix: faker is possibly used in non dev code #5

Production fix: faker is possibly used in non dev code

Production fix: faker is possibly used in non dev code #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: hackorum_test
ports: ["5432:5432"]
options: >-
--health-cmd="pg_isready -U postgres -d hackorum_test"
--health-interval=10s
--health-timeout=5s
--health-retries=5
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/hackorum_test
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y build-essential libpq-dev pkg-config
- name: Prepare database
run: bin/rails db:prepare
- name: Run specs
run: bundle exec rspec
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build app image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: false
tags: hackorum:test