chore(main): release 1.0.1 #46
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: Build and Test | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
fmt-lint-build-test: | |
runs-on: ubuntu-latest | |
env: | |
DATABASE_URL: sqlite://${{ github.workspace }}/examples/universe.db | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy, rustfmt | |
- name: Formatting | |
run: cargo fmt --check | |
- name: Linting | |
run: cargo clippy -- -D warnings | |
- name: Build dev | |
run: cargo build | |
- name: Test dev | |
run: cargo test | |
- name: Build release | |
run: cargo build --release | |
- name: Test release | |
run: cargo test --release | |
- name: Install code coverage tool | |
run: cargo install cargo-tarpaulin | |
- name: Generate code coverage | |
run: cargo tarpaulin --out Html | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v1 | |
with: | |
name: code-coverage-report | |
path: tarpaulin-report.html |