From 000001002e5114ea31a9219bd5e55b1290da797c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Sat, 3 Dec 2022 20:16:40 +0100 Subject: [PATCH] feat(ci): check, test, clippy --- .github/workflows/check.yml | 15 +++++++++++++++ .github/workflows/clippy.yml | 15 +++++++++++++++ .github/workflows/tests.yml | 15 +++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 .github/workflows/check.yml create mode 100644 .github/workflows/clippy.yml create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 000000000..a8e0474 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,15 @@ +name: Check + +on: push + +env: + CARGO_TERM_COLOR: always + +jobs: + check: + runs-on: ubuntu-latest + name: Check + steps: + - uses: actions/checkout@v2 + - name: cargo check + run: cargo check diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml new file mode 100644 index 000000000..34a90a5 --- /dev/null +++ b/.github/workflows/clippy.yml @@ -0,0 +1,15 @@ +name: Clippy + +on: push + +env: + CARGO_TERM_COLOR: always + +jobs: + clippy: + runs-on: ubuntu-latest + name: Lint (clippy) + steps: + - uses: actions/checkout@v2 + - name: cargo clippy + run: cargo clippy -- -D warnings diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 000000000..0a932ff --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,15 @@ +name: Tests + +on: push + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + runs-on: ubuntu-latest + name: Test + steps: + - uses: actions/checkout@v2 + - name: cargo test + run: cargo test