Делаю наши дополнения к I18n более потокобезопасными #57
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: Test | |
on: [push] | |
jobs: | |
runTests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- ruby-version: 3.2.5 | |
rails-version: 70 | |
- ruby-version: 3.3.5 | |
rails-version: 71 | |
- ruby-version: 3.3.5 | |
rails-version: 72 | |
env: | |
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails-version }}.gemfile | |
services: | |
postgres: | |
image: postgres:12-alpine | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: "" | |
POSTGRES_DB: postgres | |
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: Create databases | |
env: | |
RAILS_ENV: test | |
PGHOST: localhost | |
PGUSER: postgres | |
PGPORT: 5432 | |
run: sudo -u postgres createdb -h localhost -p 5432 -U postgres globalize2_test | |
- name: Run tests | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
echo BUNDLE_GEMFILE=$BUNDLE_GEMFILE | |
bundle exec rake test |