Created
February 25, 2020 14:57
-
-
Save wshihadeh/3eef2893a98c5c2efc80c28095261c2e to your computer and use it in GitHub Desktop.
Code Coverage Github workflow
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: Codecov | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Run rspec to generate code coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Ruby 2.6 | |
uses: actions/setup-ruby@v1 | |
with: | |
version: 2.6.x | |
- name: Run test cases | |
run: | | |
gem install bundler | |
bundle install | |
bundle exec rspec | |
env: | |
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} | |
- name: Slack notification Success | |
if: success() | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
uses: cemkiy/action-slacker@master | |
with: | |
channel: '#github-ci-actions' | |
icon_url: 'https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png' | |
username: 'GitHub' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment