From 74aa5d724dfe9e999ff0d400389de10c8d1f75b9 Mon Sep 17 00:00:00 2001 From: "Brian J. Tarricone" Date: Tue, 19 Sep 2023 21:23:40 -0700 Subject: [PATCH] Add gitea CI workflow --- .gitea/workflows/ci.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..52627a9 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,23 @@ +name: CI +on: + push: + branches: + - main + pull_request: {} +jobs: + ci: + name: CI + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: https://github.com/actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + components: clippy, rustfmt + - name: clippy + run: cargo clippy --all-targets --all-features -- -D warnings + - name: formatting + run: cargo fmt --check + - name: test + run: cargo test --release