From 52b8c5f88f5e091e6c8aa89f388d9a4f3d1ae284 Mon Sep 17 00:00:00 2001 From: aria Date: Fri, 11 Jul 2025 22:13:26 +1000 Subject: [PATCH] ci(rust): create a rust lint&test workflow --- .forgejo/workflows/rust.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .forgejo/workflows/rust.yml diff --git a/.forgejo/workflows/rust.yml b/.forgejo/workflows/rust.yml new file mode 100644 index 0000000..8dcd0d0 --- /dev/null +++ b/.forgejo/workflows/rust.yml @@ -0,0 +1,16 @@ +on: [push] +jobs: + lint-n-test: + # Run on the 9950x that Aria has access to :3 + runs-on: azuki-new + container: + image: rust + steps: + # nodejs is required for the checkout action + - run: curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs + - uses: actions/checkout@v4 + - run: rustup component add rustfmt clippy + - run: cargo fmt -- --check + - run: cargo clippy -- -D warnings + - run: cargo check + - run: cargo test \ No newline at end of file