Integrate codecov on CI

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2021-05-06 12:39:43 -04:00
1 parent 84eac75f71
commit a37c37b8f5
3 files changed
+30

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
# Lazy jobs running on master post merges.
name: lazy
on:
push:
branches: [master]
jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Generate report
uses: actions-rs/tarpaulin@v0.1
with:
args: '--tests --all-features'
- name: Upload to codecov.io
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Archive code coverage results
uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml
+1
View File
@@ -1,3 +1,4 @@
# Regular testing.
name: pipeline
on: [push, pull_request]
+1
View File
@@ -4,6 +4,7 @@
[![Crates.io](https://img.shields.io/crates/v/naga.svg?label=naga)](https://crates.io/crates/naga)
[![Docs.rs](https://docs.rs/naga/badge.svg)](https://docs.rs/naga)
[![Build Status](https://github.com/gfx-rs/naga/workflows/pipeline/badge.svg)](https://github.com/gfx-rs/naga/actions)
[![codecov.io](https://codecov.io/gh/gfx-rs/naga/branch/master/graph/badge.svg?token=9VOKYO8BM2)](https://codecov.io/gh/gfx-rs/naga)
The shader translation library for the needs of [wgpu](https://github.com/gfx-rs/wgpu) and [gfx-rs](https://github.com/gfx-rs/gfx) projects.