diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c975af6..c6999b9 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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/install@v0.1 -# 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 }} \ No newline at end of file + 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 + 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 }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index e5e66e4..48cc89d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ HEADER /target +coverage/ + dist/ .env