From 6df79bf2a083fabc99ea65026c1755bdf10c3f41 Mon Sep 17 00:00:00 2001 From: Andre Richter Date: Mon, 28 Oct 2019 23:29:24 +0100 Subject: [PATCH] Actions: Check Rust code formatting --- .github/workflows/check_fmt.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/check_fmt.yml diff --git a/.github/workflows/check_fmt.yml b/.github/workflows/check_fmt.yml new file mode 100644 index 00000000..9434a45b --- /dev/null +++ b/.github/workflows/check_fmt.yml @@ -0,0 +1,29 @@ +name: Check formatting + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + name: Check Rust code formatting + runs-on: ubuntu-18.04 + + steps: + - uses: actions/checkout@v1 + - name: Set up Ruby 2.x + uses: actions/setup-ruby@v1 + with: + ruby-version: 2.x + - name: Set up Rust nightly + run: | + rustup self update + rustup toolchain install nightly + rustup default nightly + - name: Make all + run: | + ruby utils/fmt_all.rb --check