Skip to content

Refresh lockfile to latest 5-0-stable Uploadcare gems #165

Refresh lockfile to latest 5-0-stable Uploadcare gems

Refresh lockfile to latest 5-0-stable Uploadcare gems #165

Workflow file for this run

name: CI
on: [push]
jobs:
linters:
name: Linters
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 4.0.1
bundler-cache: true
- name: Run linters
run: bin/rubocop --parallel
- name: Run code metric tools
run: bundle exec rails_best_practices
- name: Run brakeman metric tools
run: bundle exec brakeman
tests:
name: Tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432:5432
mongo:
image: mongo:8
options: >-
--health-cmd "mongosh --quiet --eval 'db.runCommand({ ping: 1 })'"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 27017:27017
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 4.0.1
bundler-cache: true
- name: Setup Node
uses: actions/setup-node@v5
with:
node-version: 22
package-manager-cache: false
- name: Install and build JS assets
run: |
corepack enable
pnpm install --frozen-lockfile
pnpm build
- name: Install library for postgres
run: sudo apt-get install libpq-dev
- name: Setup Database
run: |
bundle exec rails db:setup
env:
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_PORT: 5432
UPLOADCARE_PUBLIC_KEY: demopublickey
UPLOADCARE_SECRET_KEY: demoprivatekey
MONGODB_HOST: localhost:27017
RAILS_ENV: test
- name: Run tests
run: |
bundle exec rspec
env:
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_PORT: 5432
UPLOADCARE_PUBLIC_KEY: demopublickey
UPLOADCARE_SECRET_KEY: demoprivatekey
MONGODB_HOST: localhost:27017
RAILS_ENV: test