Skip to content

build(deps): bump codecov/codecov-action from 5.0.2 to 5.0.4 #168

build(deps): bump codecov/codecov-action from 5.0.2 to 5.0.4

build(deps): bump codecov/codecov-action from 5.0.2 to 5.0.4 #168

Workflow file for this run

name: test
on:
push:
tags:
- v*
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa
with:
toolchain: stable
- run: cargo generate-lockfile
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: |
target
~/.cargo/registry
key: rust-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: rust-build-
- run: make
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa
with:
toolchain: stable
components: rustfmt
- run: cargo generate-lockfile
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: |
target
~/.cargo/registry
key: rust-lint-rustfmt-${{ hashFiles('**/Cargo.lock') }}
restore-keys: rust-lint-rustfmt-
- run: make lint-rustfmt
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa
with:
toolchain: stable
components: clippy
- run: cargo generate-lockfile
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: |
target
~/.cargo/registry
key: rust-lint-clippy-${{ hashFiles('**/Cargo.lock') }}
restore-keys: rust-lint-clippy-
- run: make lint-clippy
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa
with:
toolchain: stable
- run: cargo generate-lockfile
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: |
target
~/.cargo/registry
key: rust-test-${{ hashFiles('**/Cargo.lock') }}
restore-keys: rust-test-
- run: make test
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: taiki-e/install-action@cargo-llvm-cov
- run: cargo llvm-cov --all-features --lcov --output-path lcov.info
- uses: codecov/codecov-action@985343d70564a82044c1b7fcb84c2fa05405c1a2 # v5.0.4
with:
files: lcov.info
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa
with:
toolchain: stable
- run: cargo generate-lockfile
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: |
target
~/.cargo/registry
key: rust-doc-${{ hashFiles('**/Cargo.lock') }}
restore-keys: rust-doc-
- run: make build-doc
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: docs
path: target/doc
doc-publish:
if: github.ref == 'refs/heads/main'
needs: doc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: docs
path: target/doc
- name: Update gh-pages branch
run: |
git config --global user.email mail@saschagrunert.de
git config --global user.name "CircleCI"
git fetch origin gh-pages
git checkout -f gh-pages
rm -rf doc
mv target/doc .
git add .
git diff-index --quiet HEAD || git commit -m 'Update documentation'
git push -f origin gh-pages