Sha256: 54f9f93a496ce3b690b46f247a6f6791d84ffaed6b60b6744e2c6967e2c542c3

Contents?: true

Size: 1.21 KB

Versions: 3

Compression:

Stored size: 1.21 KB

Contents

name: Linting

on:
  pull_request:

env:
  RAILS_ENV: test

jobs:
  rubocop:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      # reads from .ruby-version
      - uses: ruby/setup-ruby@v1
        with:
          bundler-cache: true
          rubygems: latest

      - name: Rubocop
        run: bundle exec rake rubocop

  ruby-types:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      # reads from .ruby-version
      - uses: ruby/setup-ruby@v1
        with:
          bundler-cache: true
          rubygems: latest

      - name: Sorbet
        id: sorbet_tc
        run: bundle exec srb tc

      - name: Provide error message
        if: failure() && steps.sorbet_tc.outcome == 'failure'
        run: |
          echo "Run 'bundle exec srb tc -a' to auto-correct Sorbet checks."

      - name: Verifying Tapioca
        id: tapioca_verify
        run: script/typecheck --verify

      - name: Provide error message
        if: failure() && steps.tapioca_verify.outcome == 'failure'
        run: |
          echo "Run 'script/typecheck --update' to update Tapioca's RBI files."
          echo "Run 'script/typecheck --verify' to verify that Tapioca's RBI files are up-to-date."

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hephaestus-0.1.3 templates/.github/workflows/lint.yml
hephaestus-0.1.2 templates/.github/workflows/lint.yml
hephaestus-0.1.1 templates/.github/workflows/lint.yml