.github/workflows/codecov.yml in pdd-0.23.2 vs .github/workflows/codecov.yml in pdd-0.24.0
- old
+ new
@@ -2,19 +2,22 @@
name: codecov
on:
push:
branches:
- master
+ pull_request:
+ branches:
+ - master
jobs:
codecov:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-ruby@v1
+ - uses: actions/checkout@v4
+ - uses: ruby/setup-ruby@v1
with:
- ruby-version: 2.7
+ ruby-version: '2.7'
- run: bundle update
- run: bundle exec rake
- - uses: codecov/codecov-action@v1
+ - uses: codecov/codecov-action@v4
with:
- file: coverage/.resultset.json
+ token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true