From 38fa3029dd1fae8f0dd78607962f68d28adde67d 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 Actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- .forgejo/workflows/lint.yaml | 27 +++++++++++++++++++++++++++ .gitea | 1 + 2 files changed, 28 insertions(+) create mode 100644 .forgejo/workflows/lint.yaml create mode 120000 .gitea diff --git a/.forgejo/workflows/lint.yaml b/.forgejo/workflows/lint.yaml new file mode 100644 index 00000000..0287933c --- /dev/null +++ b/.forgejo/workflows/lint.yaml @@ -0,0 +1,27 @@ +name: 'Lint' +run-name: 'Linting xmpp-rs repository' +on: + workflow_dispatch: + + push: + + pull_request: + types: + - 'opened' + +jobs: + rustfmt: + runs-on: 'docker' + container: + image: 'rust:slim' + steps: +# - name: Install deps +# run: apt-get update; apt-get install -y --no-install-recommends pkg-config libssl-dev libicu-dev + - name: Print versions + run: rustc --version; cargo --version + - name: Setup node (Required for actions/checkout) + uses: actions/setup-node@v3 + - name: Checkout + uses: actions/checkout@v4 + - name: Rustfmt + run: rustup component add rustfmt; cargo fmt --check diff --git a/.gitea b/.gitea new file mode 120000 index 00000000..d9a4b42c --- /dev/null +++ b/.gitea @@ -0,0 +1 @@ +.forgejo \ No newline at end of file