Skip to content

Commit

Permalink
add format check as explicit workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Oct 10, 2020
1 parent d0d9072 commit 4b9a93f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/format.yml
@@ -0,0 +1,36 @@
name: Build and test

on:
pull_request:
push:
branches:
- master
- staging
- trying

jobs:
build:
name: Test
runs-on: ubuntu-latest

strategy:
matrix:
os: ubuntu-latest
rust: [nightly]
include:
- os: ubuntu-latest
rust: 'nightly'
components: 'rustfmt'
targets: 'x86_64-unknown-linux-gnu'


steps:
- uses: hecrj/setup-rust-action@v1.3.1
with:
rust-version: ${{ matrix.rust }}
components: ${{ matrix.components || '' }}
targets: ${{ matrix.targets || '' }}
- name: Checkout
uses: actions/checkout@v1
- name: Check Formatting
run: cargo fmt -- --check

0 comments on commit 4b9a93f

Please sign in to comment.