rails 8.1 support #200
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: [pull_request] | |
| jobs: | |
| standardrb: | |
| name: runner / standardrb | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v1 | |
| - name: Give permissions | |
| run: | | |
| sudo chown -R root:root $GITHUB_WORKSPACE | |
| - name: standardrb | |
| uses: SennaLabs/action-standardrb@v0.0.3 | |
| with: | |
| github_token: ${{ secrets.github_token }} | |
| reporter: github-pr-review # Default is github-pr-check | |
| rubocop_version: 1.1.6 # note: this actually refers to standardb version, not Rubocop | |
| rubocop_flags: --format progress | |
| rubocop: | |
| name: runner / rubocop | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.1 | |
| - name: Install dependencies | |
| run: | | |
| bundle config path vendor/bundle | |
| bundle install | |
| - name: Run RuboCop | |
| run: | | |
| bundle exec rubocop |