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