Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatter using Checks API #10

Closed
wants to merge 2 commits into from
Closed

Formatter using Checks API #10

wants to merge 2 commits into from

Conversation

StefSchenkelaars
Copy link
Contributor

@StefSchenkelaars StefSchenkelaars commented Oct 23, 2020

Definitely still a draft but it pushes all the annotations using the checks API.

You can use this branch by selecting it in the gemfile:

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/')
  "https://github.com/#{repo_name}.git"
end

gem 'rspec-github', require: false, github: 'Drieam/rspec-github', branch: 'issue/7'

To test it, make sure you add the OCTOKIT_ACCESS_TOKEN environment variable to you job and select the RSpec::Github::Annotator class as the formatter:

jobs:
  rspec:
    steps:
      # ...
      - name: Run RSpec
        env:
          OCTOKIT_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: bundle exec rspec --format RSpec::Github::Annotator

Closes #7

@StefSchenkelaars StefSchenkelaars self-assigned this Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not displaying all failures
2 participants