From 9959f90ea4b7ebd933387e6b33647fc661785d84 Mon Sep 17 00:00:00 2001 From: Sakarias Johansson Date: Thu, 19 Jan 2023 20:03:29 +0100 Subject: =?UTF-8?q?=F0=9F=92=9A=20Add=20CI=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/ci.yaml (limited to '.github/workflows') diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..bd48ee9 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,42 @@ +name: Cargo Build & Test + +on: + push: + pull_request: + + +env: + CARGO_TERM_COLOR: always + + +jobs: + test: + name: Rust project - latest + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Install toolchain + run: | + rustup update stable + rustup default stable + rustup component add clippy + + - name: Lint + run: | + cd racer-tracer + cargo fmt -- --check + cargo clippy -- -D warnings + + - name: Test + run: | + cd racer-tracer + cargo check + cargo test --all + + - name: Build + run: | + cd racer-tracer + cargo build --release + -- cgit v1.2.3