Merge pull request #18 from codecov/switch-to-v4-beta #56
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: Test and coverage | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: head | |
- name: Install Ruby dependencies | |
run: bundle update --bundler && bundle install | |
- name: Run script | |
run: bashcov script.sh | |
- name: Upload reports to Codecov | |
uses: codecov/codecov-action@v4-beta | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} | |
with: | |
fail_ci_if_error: true | |
file: coverage/codecov-result.json |