⬆️ update thollander/actions-comment-pull-request action to v3 #270
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: tarpaulin | |
on: | |
pull_request: | |
paths: | |
- '**/*.lock' | |
- '**/*.rs' | |
- '**/*.toml' | |
- '**/tarpaulin.yml' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name == 'main' && github.sha || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
pull-requests: write | |
jobs: | |
coverage: | |
name: coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: cargo | |
uses: taiki-e/install-action@v2.44.15 | |
with: | |
tool: cargo-tarpaulin | |
- name: python | |
uses: actions/setup-python@v5.2.0 | |
with: | |
python-version: 3.11 | |
- name: checkout | |
uses: actions/checkout@v4.2.0 | |
with: | |
ref: ${{ github.head_ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- name: requirements | |
run: echo pycobertura >> requirements.txt | |
- name: dependencies | |
uses: py-actions/py-dependency-install@v4.1.0 | |
- name: tarpaulin | |
run: | | |
cargo tarpaulin \ | |
&& echo '```' >> message.txt \ | |
&& pycobertura show cobertura.xml >> message.txt \ | |
&& echo '```' >> message.txt | |
- name: comment | |
uses: thollander/actions-comment-pull-request@v3.0.0 | |
with: | |
comment-tag: tarpaulin | |
file-path: message.txt |