Skip to content

Instantly share code, notes, and snippets.

@wshihadeh
Created February 25, 2020 14:57
Show Gist options
  • Save wshihadeh/3eef2893a98c5c2efc80c28095261c2e to your computer and use it in GitHub Desktop.
Save wshihadeh/3eef2893a98c5c2efc80c28095261c2e to your computer and use it in GitHub Desktop.
Code Coverage Github workflow
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