name: Build Ruby Gem on: push: branches: - "master" jobs: build: runs-on: ubuntu-latest env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} steps: - uses: actions/checkout@v2 - name: Set up Ruby 2.7 uses: actions/setup-ruby@v1 with: ruby-version: 2.7.x - name: Build and test run: | gem install bundler bundle install bundle exec rspec - name: Publish code coverage uses: paambaati/codeclimate-action@v3.0.0 env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} with: coverageCommand: bundle exec rspec coverageLocations: ${{ github.workspace }}/coverage/coverage.json:simplecov - name: Notify Slack uses: adamkdean/simple-slack-notify@1.0.4 with: channel: '#ops' username: 'GitHub Actions' color: 'good' text: 'A new version of the briard gem has been built.'