Sha256: e0a3ffdd28d474b45863b1239860986a6e8e7563163d3aaf870d84406b57954c

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

name: Tests

on: [push]

jobs:
  linter:
    strategy:
      fail-fast: false # I understand this is to run on all versions.
      matrix:
        ruby: ['2', '3.0.4']

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true

      - run: bundle exec rubocop --display-cop-names --parallel

  rspec:
    strategy:
      fail-fast: false # I understand this is to run on all versions.
      matrix:
        ruby: ['2', '3.0.4']

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true

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

      - run: |
            ./cc-test-reporter before-build
            bundle exec rspec
            ./cc-test-reporter after-build -r $CC_TEST_REPORTER_ID --exit-code $?
        env:
           CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
br_danfe-0.17.7 .github/workflows/config.yml
br_danfe-0.17.6 .github/workflows/config.yml