Skip to content

Commit

Permalink
adjust workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
xring committed Apr 15, 2024
1 parent 3e7517e commit 736100e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,37 +66,37 @@ jobs:
- name: Test
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/[email protected]
# with:
# crate: cargo-tarpaulin
# version: 0.14.2
# use-tool-cache: true
# - name: Checkout
# uses: actions/checkout@v2
# - name: Coverage
# run: cargo tarpaulin -o Lcov --output-dir ./coverage
# - name: Coveralls
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
#
# publish-crate:
# if: startsWith(github.ref, 'refs/tags/v0')
# runs-on: ubuntu-latest
# needs: [test]
# steps:
# - name: Set up Rust
# uses: hecrj/setup-rust-action@v1
# - uses: actions/checkout@v2
# - name: Publish
# shell: bash
# run: |
# cargo publish --token ${{ secrets.CRATES_TOKEN }}
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/[email protected]
with:
crate: cargo-tarpaulin
version: 0.14.2
use-tool-cache: true
- name: Checkout
uses: actions/checkout@v2
- name: Coverage
run: cargo tarpaulin -o Lcov --output-dir ./coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

publish-crate:
if: startsWith(github.ref, 'refs/tags/v0')
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Set up Rust
uses: hecrj/setup-rust-action@v1
- uses: actions/checkout@v2
- name: Publish
shell: bash
run: |
cargo publish --token ${{ secrets.CRATES_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ HEADER

/target

coverage/

dist/

.env
Expand Down

0 comments on commit 736100e

Please sign in to comment.