diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml new file mode 100644 index 00000000..1a8d1b4d --- /dev/null +++ b/.gitea/workflows/lint.yaml @@ -0,0 +1,22 @@ +name: 'Lint' +run-name: 'Linting xmpp-rs repository' +on: + workflow_dispatch: + + push: + + pull_request: + types: + - 'opened' + +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 + rustup component add rustfmt + rustc --version + cargo --version + cargo fmt --check