From f8cd70b2f2e25ef5873d62bf9a6b311f975cab2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 16 Nov 2023 15:37:55 +0100 Subject: [PATCH] WIP gitea actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- .gitea/workflows/lint.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .gitea/workflows/lint.yaml diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml new file mode 100644 index 00000000..5b26584e --- /dev/null +++ b/.gitea/workflows/lint.yaml @@ -0,0 +1,14 @@ +name: 'Lint' +run-name: 'Linting xmpp-rs repository' +on: ['push'] + +jobs: + rustfmt: + runs-on: 'docker' + image: 'rust:slim' + steps: + - run: 'apt-get update; apt-get install -y --no-install-recommends pkg-config libssl-dev libicu-dev' + - run: 'rustc --version' + - run: 'cargo --version' + - run: 'rustup component add rustfmt' + - run: 'cargo fmt --check'