Sha256: 60f25b8c81b1b2b345b1b2b63a70cfe3aabfcc3ea6098e7502165e21e5367490

Contents?: true

Size: 1.6 KB

Versions: 4

Compression:

Stored size: 1.6 KB

Contents

name: CI - master
on:
  push:
    branches:
      - master

jobs:
  rspec:
    name: RSpec - master
    runs-on: ubuntu-latest

    services:
      postgres:
        options: >-
          --health-cmd pg_isready
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5
        image: postgres:10.10
        ports:
          - 5432:5432
        env:
          POSTGRES_DB: arel_toolkit_test
          POSTGRES_USER: postgres
    steps:
    - uses: actions/checkout@v1

    - name: Set up Ruby 2.5.x
      uses: actions/setup-ruby@v1
      with:
        ruby-version: 2.5.x

    - name: Setup
      run: |
        curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
        chmod +x ./cc-test-reporter
        ./cc-test-reporter before-build

        sudo apt-get install -y libpq-dev

        gem install bundler

        bundle install --jobs 4 --retry 3
        bundle exec appraisal install

        bundle exec rake clean
        bundle exec rake compile

    - name: RSpec
      run: |
        bundle exec appraisal rspec --force-color

    - name: Report to codeclimate
      if: always()
      shell: bash
      env:
        JOB_STATUS: ${{ job.status == 'Success' }}
        CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
      run: |
        EXIT_CODE=$([[ "$JOB_STATUS" == true ]] && echo 0 || echo 1)
        ./cc-test-reporter after-build --exit-code $EXIT_CODE

    - name: Upload coverage to GitHub pages
      uses: maxheld83/ghpages@v0.2.1
      env:
        BUILD_DIR: ./coverage
        GH_PAT: ${{ secrets.GH_PAT }}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
arel_toolkit-0.4.4 .github/workflows/master.yml
arel_toolkit-0.4.3 .github/workflows/master.yml
arel_toolkit-0.4.2 .github/workflows/master.yml
arel_toolkit-0.4.1 .github/workflows/master.yml