From 00000070ba246536ebaf431e1024867f34444431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Wed, 30 Nov 2022 21:43:29 +0100 Subject: [PATCH] feat: add github ci for tests, cargo check and clippy --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ .gitignore | 2 -- src/test_inputs/01.txt | 0 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci.yml create mode 100644 src/test_inputs/01.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..23592a2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: Continuous Integration + +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 + test: + runs-on: ubuntu-latest + name: Test + steps: + - uses: actions/checkout@v2 + - name: cargo test + run: cargo test + clippy: + runs-on: ubuntu-latest + name: Lint (clippy) + steps: + - uses: actions/checkout@v2 + - name: cargo clippy + run: cargo clippy -- -D warnings diff --git a/.gitignore b/.gitignore index 6969c26..fd16741 100644 --- a/.gitignore +++ b/.gitignore @@ -14,5 +14,3 @@ target/ /src/inputs/* !/src/inputs/.keep -/src/test_inputs/* -!/src/test_inputs/.keep diff --git a/src/test_inputs/01.txt b/src/test_inputs/01.txt new file mode 100644 index 000000000..e69de29