upgrade to autometrics v1.0.0
#289
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
# This workflow will be triggered by a GitHub pull-request and pushes to main. | |
# It will verify that the code compiles, that the tests pass and that | |
# clippy does not complain (too much) and finally that the code is formatted | |
# according to cargo fmt. If it was a push to main, then it will also trigger a | |
# build, and a deploy to dev. | |
--- | |
name: Test | |
on: | |
pull_request: | |
branches: ["*"] | |
push: | |
branches: ["main"] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy, rustfmt | |
cache: true | |
- name: Rustfmt Check | |
uses: actions-rust-lang/rustfmt@v1 | |
- name: Cargo clippy | |
run: cargo clippy --all-features --all | |
- name: Run tests | |
run: cargo test --all |