Run ruby -wc
and anotate it with Problem Matchers
This action is useful when you want to detect syntax errors of test skipped files in CI.
name: test
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- uses: marocchino/ruby-check-action@v2
name: test
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- uses: marocchino/ruby-check-action@v2
with:
switch: '-c'
name: test
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- uses: marocchino/ruby-check-action@v2
with:
paths: |
lib/**/*.rb
db/**/*.rb
config/**/*.rb
Optional, Switch that pass to ruby. This defaults to -wc
.
Optional, Filters the path of ruby files.
If value need to be more than one line, it should be multiline string not an array.
This defaults to **/*.rb
.
Optional, You can set PAT here. If not set, this will use ${{ github.token }}
.
None
Feel free to report issues. 😃