From e9ac53bb9a64682c4c32f86cf2ec674e2a609e19 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 21 Mar 2020 05:36:51 +0100 Subject: Add workflow to check format in CI --- .github/workflows/format.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/format.yml (limited to '.github') diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 00000000..55bc79d9 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,12 @@ +name: Format +on: [push, pull_request] +jobs: + native: + runs-on: ubuntu-latest + steps: + - uses: hecrj/setup-rust-action@v1 + with: + components: rustfmt + - uses: actions/checkout@master + - name: Check format + run: cargo fmt --all -- --check -- cgit