chore(deps): update codecov/codecov-action digest to c4cf8a4 #230
Workflow file for this run
This file contains 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: CI | |
on: | |
- push | |
- pull_request | |
jobs: | |
rspec: | |
runs-on: ${{ matrix.os }} | |
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
# NOTE: hold off testing other platforms until we start having native dependencies or running into issues on them | |
# - macos-latest | |
# - windows-latest | |
ruby: | |
- "3.2" | |
- "3.1" | |
- "3.0" | |
- "2.7" | |
env: | |
BUNDLE_GEMFILE: Gemfile | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- run: bundle install | |
- name: RSpec | |
run: bundle exec rspec | |
- name: Upload coverage to Codecov | |
if: ${{ strategy.job-index == 0 }} # only run codecov on first run | |
uses: codecov/codecov-action@c4cf8a4f03f0ac8585acb7c1b7ce3460ec15782f | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
name: Ruby SDK | |
fail_ci_if_error: true | |
verbose: true | |
file: coverage/coverage.xml | |
rubocop: | |
name: Rubocop | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
- run: bundle install | |
- name: Rubocop | |
run: bundle exec rubocop --color | |
# check the status of other jobs, so we can have a single job dependency for branch protection | |
# https://github.com/community/community/discussions/4324#discussioncomment-3477871 | |
status: | |
name: CI Status | |
runs-on: ubuntu-latest | |
needs: [rspec, rubocop] | |
if: always() | |
steps: | |
- name: Successful CI | |
if: ${{ !(contains(needs.*.result, 'failure')) }} | |
run: exit 0 | |
- name: Failing CI | |
if: ${{ contains(needs.*.result, 'failure') }} | |
run: exit 1 |