name: test on: push: pull_request: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: build: runs-on: ubuntu-latest services: mysql: image: mysql:5.7 ports: - 3306:3306 env: MYSQL_ALLOW_EMPTY_PASSWORD: "yes" options: --health-cmd "mysqladmin ping -h localhost" --health-interval 1s --health-timeout 3s --health-retries 60 strategy: fail-fast: false matrix: ruby: - 2.7 - 3.0 - 3.1 - 3.2 gemfile: - gemfiles/ar60.gemfile - gemfiles/ar61.gemfile - gemfiles/ar70.gemfile - gemfiles/ar71.gemfile env: DATABASE_HOST: 127.0.0.1 BUNDLE_GEMFILE: ${{ matrix.gemfile }} steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - run: bundle install - run: bundle exec rake