Merge pull request #261 from dzervas/renovate/serde-1.x #642
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 | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust nightly toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
- name: Test project | |
run: cargo test -v | |
- name: Install Tarpaulin | |
uses: actions-rs/[email protected] | |
if: github.ref == 'refs/heads/main' | |
with: | |
crate: cargo-tarpaulin | |
use-tool-cache: true | |
- name: Generate coverage report | |
if: github.ref == 'refs/heads/main' | |
run: cargo tarpaulin -v --coveralls ${{ secrets.COVERALLS_TOKEN }} |