puppetlabs/facter-ng

View on GitHub
.github/workflows/checks.yaml

Summary

Maintainability
Test Coverage
---
name: Checks

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  rubocop_checks:
    runs-on: ubuntu-18.04
    name: RuboCop
    steps:
      - name: Checkout current PR
        uses: actions/checkout@v2

      - name: Rubocop checks
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.6
      - run: bundle install --jobs 3 --retry 3
      - run: bundle exec rubocop --parallel

  rtc:
    runs-on: ubuntu-latest
    name: RuboCop TODO
    steps:
      - uses: actions/checkout@v1
      - uses: gimmyxd/rtc-action@0.2.1
        env:
          RTC_TOKEN: ${{ secrets.RTC_TOKEN }}
          UPDATE_PR: false

          # forces the job to fail if there are any new offences
          FORCE_ERROR_EXIT: true

  commit_checks:
    runs-on: ubuntu-18.04
    name: commit message
    steps:
      - name: Checkout current PR
        uses: actions/checkout@v2
        with:
          fetch-depth: 2

      - name: Commit message checks
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.6
      - run: bundle install --jobs 3 --retry 3
      - run: bundle exec rake commits