testing actions workflow #19
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: docker_logdna CI | |
on: [push] | |
jobs: | |
test: | |
runs-on: self-hosted | |
steps: | |
- name: Install Rust | |
run: | | |
apt-get update | |
apt-get install -y musl-tools musl-dev protobuf-compiler | |
rustup target add x86_64-unknown-linux-musl | |
rustup component add clippy | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Clippy | |
run: | | |
cargo clippy -- -W clippy::unwrap_used -A clippy::useless_format -D warnings | |
- name: Test Debug | |
run: | | |
cargo test | |
- name: Test Release | |
run: | | |
cargo test --release | |
- name: Build Release | |
run: | | |
cargo build --release --target x86_64-unknown-linux-musl | |