mirror of
https://github.com/kemko/paperclip.git
synced 2026-01-01 16:05:40 +03:00
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
name: Test
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
jobs:
|
|
runTests:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
ruby-version: [3.3.6]
|
|
rails-version:
|
|
- 71
|
|
- 72
|
|
- 80
|
|
include:
|
|
- ruby-version: 3.2.3
|
|
rails-version: 70
|
|
|
|
env:
|
|
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails-version }}.gemfile
|
|
BUNDLE_WITHOUT: lint
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
env:
|
|
POSTGRES_DB: paperclip_test
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: ""
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
ports:
|
|
- 5432:5432
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Install ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ matrix.ruby-version }}
|
|
bundler-cache: true
|
|
|
|
- name: Run tests
|
|
run: |
|
|
echo Running with $BUNDLE_GEMFILE
|
|
bundle exec rake test
|