Skip to content

chore(main): release 1.0.1 (#6) #44

chore(main): release 1.0.1 (#6)

chore(main): release 1.0.1 (#6) #44

Workflow file for this run

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