Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
e20bd9b1d2
commit
f8cd70b2f2
1 changed files with 14 additions and 0 deletions
14
.gitea/workflows/lint.yaml
Normal file
14
.gitea/workflows/lint.yaml
Normal file
|
@ -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'
|
Loading…
Reference in a new issue