Sha256: 0e650eba4c74bd8b2211997a1361dc76fd99c5dcf3ce8abd934c92fbc37e0e08

Contents?: true

Size: 996 Bytes

Versions: 1

Compression:

Stored size: 996 Bytes

Contents

name: Ruby
on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
jobs:
  test:
    runs-on: ubuntu-20.04
    strategy:
      matrix:
        ruby: ['3.1']
    env:
      CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
    services:
      postgres:
        image: postgres:12.8
        options: >-
          --health-cmd pg_isready
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5
        ports:
          - 5432:5432
        env:
          POSTGRES_USER: runner
          POSTGRES_HOST_AUTH_METHOD: trust
    steps:
    - name: Checkout the repo
      uses: actions/checkout@v2
    - name: Install Ruby, bundler and the bundle
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - name: Run tests
      run: bundle exec rake
    - name: Publish code coverage
      if: ${{ github.actor != 'dependabot[bot]' }}
      uses: paambaati/codeclimate-action@v3.0.0

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
superstore-3.0.0 .github/workflows/ruby.yml