From e5debcb50be9abd6c53588281da7901681220b1c Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Sun, 26 Apr 2020 13:13:56 +0200 Subject: [PATCH 1/2] Attempt to use GH actions for rustfmt check --- .github/workflows/rustfmt.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/rustfmt.yml diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml new file mode 100644 index 00000000..083bcbad --- /dev/null +++ b/.github/workflows/rustfmt.yml @@ -0,0 +1,19 @@ +on: [push, pull_request] + +name: Code formatting check + + fmt: + name: Rustfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - run: rustup component add rustfmt + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check From 6a1792007523528659613d17212417afc0259dd1 Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Sun, 26 Apr 2020 13:17:54 +0200 Subject: [PATCH 2/2] Adding missing jobs: --- .github/workflows/rustfmt.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml index 083bcbad..12157253 100644 --- a/.github/workflows/rustfmt.yml +++ b/.github/workflows/rustfmt.yml @@ -2,6 +2,7 @@ on: [push, pull_request] name: Code formatting check +jobs: fmt: name: Rustfmt runs-on: ubuntu-latest