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'