mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-23 07:24:10 +00:00
Break test and coverage test into separate jobs (#949)
This commit is contained in:
parent
b8a58bbc11
commit
9c2e8bcdbc
1 changed files with 16 additions and 2 deletions
18
.github/workflows/rust.yml
vendored
18
.github/workflows/rust.yml
vendored
|
@ -75,11 +75,25 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Test
|
- name: Test
|
||||||
run: cargo test --all-features
|
run: cargo test --all-features
|
||||||
|
|
||||||
|
test-coverage:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Setup Rust
|
||||||
|
uses: hecrj/setup-rust-action@v1
|
||||||
|
with:
|
||||||
|
rust-version: stable
|
||||||
|
- name: Install Tarpaulin
|
||||||
|
uses: actions-rs/install@v0.1
|
||||||
|
with:
|
||||||
|
crate: cargo-tarpaulin
|
||||||
|
version: 0.14.2
|
||||||
|
use-tool-cache: true
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
- name: Coverage
|
- name: Coverage
|
||||||
if: matrix.rust == 'stable'
|
|
||||||
run: cargo tarpaulin -o Lcov --output-dir ./coverage
|
run: cargo tarpaulin -o Lcov --output-dir ./coverage
|
||||||
- name: Coveralls
|
- name: Coveralls
|
||||||
if: matrix.rust == 'stable'
|
|
||||||
uses: coverallsapp/github-action@master
|
uses: coverallsapp/github-action@master
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue