Sha256: fd1b8aab0870ba5843031296f6729ee6c6fbc62e96d1472e4b8fda0a0cc77136

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

name: CI

on: push

jobs:
  build:
    # You must use a Linux environment when using service containers or container jobs
    runs-on: ubuntu-latest

    steps:
      # Downloads a copy of the code in your repository before running CI tests
      - name: Checkout repository
        uses: actions/checkout@v2
        with:
          fetch-depth: 0  # Shallow clones should be disabled for a better relevancy of sonarcloud analysis

      # We don't have to specify the ruby version, or grab it from .ruby-verion. This action supports reading the
      # version from .ruby-verion itself
      - name: Install Ruby
        uses: ruby/setup-ruby@v1
        with:
          bundler-cache: true # runs 'bundle install' and caches installed gems automatically

      # Run linting first. No point running the tests if there is a linting issue
      - name: Run lint check
        run: |
          bundle exec rubocop --format progress --format json --out rubocop-result.json

      - name: Run unit tests
        run: |
          bundle exec rspec

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
defra_ruby_template-5.4.1 .github/workflows/ci.yml
defra_ruby_template-5.4.0 .github/workflows/ci.yml