summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSakarias Johansson <sakarias.johansson@goodbyekansas.com>2023-01-19 20:03:29 +0100
committerSakarias Johansson <sakarias.johansson@goodbyekansas.com>2023-01-19 20:21:55 +0100
commit9959f90ea4b7ebd933387e6b33647fc661785d84 (patch)
tree48c2484f08dd9ce3a758336616c4386d97663af1 /.github
parentb24f6d9bc9cf1f72c0fb85eb8b25e051b81b7b4f (diff)
downloadracer-tracer-9959f90ea4b7ebd933387e6b33647fc661785d84.tar.gz
racer-tracer-9959f90ea4b7ebd933387e6b33647fc661785d84.tar.xz
racer-tracer-9959f90ea4b7ebd933387e6b33647fc661785d84.zip
💚 Add CI workflows
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yaml42
1 files changed, 42 insertions, 0 deletions
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
+