Sha256: 78d5c215f34c24d79c3369e40b962db614a2e8541b514b76da80694b5d48bb90
Contents?: true
Size: 1.53 KB
Versions: 1
Compression:
Stored size: 1.53 KB
Contents
name: Ruby on: [push, pull_request] jobs: build: name: Ruby ${{ matrix.ruby }}, ActiveRecord ${{ matrix.activerecord }} runs-on: ubuntu-latest strategy: matrix: ruby: - 2.7 - 2.6 - 2.5 activerecord: - '~> 6' - '~> 5' - '~> 4' exclude: - ruby: 2.7 activerecord: '~> 4' env: DATABASE_URL_MYSQL2: 'mysql2://root:root@127.0.0.1:3306' DATABASE_URL_POSTGRESQL: 'postgresql://root:root@127.0.0.1:5432' ACTIVE_RECORD_VERSION: ${{ matrix.activerecord }} steps: - uses: actions/checkout@v2 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - name: install gems run: | gem install bundler bundle install - name: Typecheck run: | bundle exec srb tc - name: Create databases run: | sudo systemctl start mysql.service sudo systemctl start postgresql.service echo "create user root password 'root';" >> /tmp/create_user.sql echo "ALTER ROLE root WITH CREATEDB;" >> /tmp/create_user.sql sudo su postgres -c 'psql --file=/tmp/create_user.sql' sudo su postgres -c 'createdb root' bundle exec rake db:drop db:create db:migrate ADAPTER=postgresql bundle exec rake db:drop db:create db:migrate - name: Tests for mysql2 run: | bundle exec rspec - name: Tests for postgresql run: | ADAPTER=postgresql bundle exec rspec
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wt_activerecord_index_spy-0.5.0 | .github/workflows/main.yml |