diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/ISSUE_TEMPLATE.md | 12 | ||||
-rw-r--r-- | .github/PULL_REQUEST_TEMPLATE.md | 12 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 78 |
3 files changed, 78 insertions, 24 deletions
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index ef4b5f0..0000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,12 +0,0 @@ -<!-- - -IMPORTANT NOTICE - -Github is only used for CI right now, main development continues on the -mailinglist. - -Please send issues and pull requests (either via `git request-pull` or `git -format-patch` + `git send-email`) to -[the imag mailinglist](https://imag-pim.org/mailinglist/). - ---> diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index ef4b5f0..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,12 +0,0 @@ -<!-- - -IMPORTANT NOTICE - -Github is only used for CI right now, main development continues on the -mailinglist. - -Please send issues and pull requests (either via `git request-pull` or `git -format-patch` + `git send-email`) to -[the imag mailinglist](https://imag-pim.org/mailinglist/). - ---> diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b70efcc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,78 @@ +on: [push, pull_request] + +name: MSRV + +jobs: + check: + name: Check + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4.1.1 + + - name: Install toolchain + uses: dtolnay/rust-toolchain@master + with: + toolchain: 1.75.0 + + - name: Cache + uses: Swatinem/rust-cache@v2 + + - name: Run cargo check + run: cargo check --all-features --examples --tests + + test: + name: Test Suite + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4.1.1 + + - name: Install toolchain + uses: dtolnay/rust-toolchain@master + with: + toolchain: 1.75.0 + + - name: Cache + uses: Swatinem/rust-cache@v2 + + - name: Run cargo test + run: cargo test --all-features + + fmt: + needs: [check] + name: Rustfmt + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4.1.1 + + - name: Install toolchain + uses: dtolnay/rust-toolchain@master + with: + toolchain: 1.75.0 + components: rustfmt + + - name: Run cargo fmt + run: cargo fmt --all -- --check + + clippy: + needs: [check] + name: Clippy + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4.1.1 + + - name: Install toolchain + uses: dtolnay/rust-toolchain@master + with: + toolchain: 1.75.0 + components: clippy + + - name: Cache + uses: Swatinem/rust-cache@v2 + + - name: Run cargo clippy + run: cargo clippy --all-targets --all-features -- -D warnings + |