Skip to content

Instantly share code, notes, and snippets.

@ybiquitous
Last active August 6, 2021 21:27
Show Gist options
  • Save ybiquitous/580d1cc2c53fa3a4bb393fc346b4dec4 to your computer and use it in GitHub Desktop.
Save ybiquitous/580d1cc2c53fa3a4bb393fc346b4dec4 to your computer and use it in GitHub Desktop.
Steep on GitHub Actions
# https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
name: Steep
on: pull_request
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- run: gem install steep --no-document
- run: |
steep check | ruby -pe 'sub(/^(.+):(\d+):(\d+): (.+)$/, %q{::error file=\1,line=\2,col=\3::\4})'
shell: bash
@ybiquitous
Copy link
Author

image

Tested with Steep 0.15.0

@ybiquitous
Copy link
Author

Using Bash because it needs bash -o pipefail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment