From 3d3cafc6609056e998e39352e86d19d8a6b08041 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Tue, 1 Dec 2020 08:18:35 +0100 Subject: Use GitHub Actions instead of Travis for CI --- .github/workflows/rustfmt.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/rustfmt.yml (limited to '.github/workflows/rustfmt.yml') diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml new file mode 100644 index 0000000..824c299 --- /dev/null +++ b/.github/workflows/rustfmt.yml @@ -0,0 +1,19 @@ +on: [push, pull_request] + +name: Code formatting check + +jobs: + fmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: rustfmt + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check -- cgit v1.2.3-54-g00ecf