Sha256: bb720c261e116efed40af52d07b285bfda6257a9f9fc670fc060557457bb0503

Contents?: true

Size: 1.73 KB

Versions: 2

Compression:

Stored size: 1.73 KB

Contents

name: Continuous Integration

on:
  push:
    branches:
      - '**'
    tags:
      - "v*.*.*"
  pull_request:
    branches:
      - master

jobs:
  tests:
    runs-on: ubuntu-latest

    services:
      postgres:
        image: postgres:11.5
        ports: ["5432:5432"]
        options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
      mysql:
        image: mysql:8.0
        env:
          MYSQL_ROOT_PASSWORD: password
        ports: ["3306:3306"]
        options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5

    strategy:
      fail-fast: false
      matrix:
        ruby: ["3.0.6", "3.1.4", "3.2.2"]
        gemfile: 
          - "gemfiles/Gemfile.6.1.mysql"
          - "gemfiles/Gemfile.6.1.pg"
          - "gemfiles/Gemfile.7.0.mysql"
          - "gemfiles/Gemfile.7.0.pg"
          - "gemfiles/Gemfile.7.1.mysql"
          - "gemfiles/Gemfile.7.1.pg"
    env:
      BUNDLE_GEMFILE: ${{github.workspace}}/${{matrix.gemfile }}
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: "${{ matrix.ruby }}"
    - name: Bundle
      run: |
        gem install bundler:2.4.10
        bundle install

    - name: Run Rubocop
      run: bundle exec rubocop

    - name: Run Tests
      env:
        PGHOST: localhost
        PGUSER: postgres
      run: bundle exec rspec

  publish:
    needs: [tests]
    runs-on: ubuntu-latest
    if: startsWith(github.ref, 'refs/tags/v')

    permissions:
      contents: write
      id-token: write

    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: "3.2.2"
          bundler-cache: true
      - uses: rubygems/release-gem@v1

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
temporal_tables-3.0.1 .github/workflows/test.yml
temporal_tables-3.0.0 .github/workflows/test.yml