Skip to content

fix: Removed MySQL unused lock variable and broaden SQLite detection. #9

fix: Removed MySQL unused lock variable and broaden SQLite detection.

fix: Removed MySQL unused lock variable and broaden SQLite detection. #9

Workflow file for this run

name: CI Mysql 5.7
on:
pull_request:
branches:
- master
concurrency:
group: ci-mysql5-${{ github.head_ref }}
cancel-in-progress: true
jobs:
minitest:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}
services:
mysql:
image: mysql:5.7
ports:
- 3306
env:
MYSQL_USER: with_advisory
MYSQL_PASSWORD: with_advisory_pass
MYSQL_DATABASE: with_advisory_lock_test
MYSQL_ROOT_HOST: '%'
strategy:
fail-fast: false
matrix:
ruby:
- '3.2'
- '3.1'
- '3.0'
- '2.7'
- '3.3'
- 'truffleruby'
rails:
- 7.1
- "7.0"
- 6.1
adapter:
- mysql2://with_advisory:with_advisory_pass@0:${{ job.services.mysql.ports[3306] }}/with_advisory_lock_test

Check failure on line 39 in .github/workflows/ci-mysql5.yml

View workflow run for this annotation

GitHub Actions / CI Mysql 5.7

Invalid workflow file

The workflow is not valid. .github/workflows/ci-mysql5.yml (Line: 39, Col: 13): Unrecognized named-value: 'job'. Located at position 1 within expression: job.services.mysql.ports[3306] .github/workflows/ci-mysql5.yml (Line: 40, Col: 13): Unrecognized named-value: 'job'. Located at position 1 within expression: job.services.mysql.ports[3306]
- trilogy://with_advisory:with_advisory_pass@0:${{ job.services.mysql.ports[3306] }}/with_advisory_lock_test
include:
- ruby: jruby
rails: 6.1
adapter: jdbcmysql://with_advisory:with_advisory_pass@0:${{ job.services.mysql.ports[3306] }}/with_advisory_lock_test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
rubygems: latest
env:
BUNDLE_GEMFILE: gemfiles/activerecord_${{ matrix.rails }}.gemfile
- name: Test
env:
BUNDLE_GEMFILE: gemfiles/activerecord_${{ matrix.rails }}.gemfile
DATABASE_URL: ${{ matrix.adapter }}
WITH_ADVISORY_LOCK_PREFIX: ${{ github.run_id }}
run: bundle exec rake