From 859d5f4e955e0a67e851c6350c269d2fa0c913f4 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 | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..f1572e0 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,37 @@ +name: CI +on: + - push +jobs: + janitorial: + name: janitorial + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: https://github.com/actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + components: clippy + override: true + - uses: https://github.com/actions-rs/clippy-check@v1 + with: + toolchain: stable + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-targets --all-features -- -D warnings + - uses: https://github.com/actions-rs/cargo@v1 + with: + command: fmt + args: --check + test: + name: test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: https://github.com/actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - uses: https://github.com/actions-rs/cargo@v1 + with: + command: test + args: --release --target=${{ matrix.target }}