Skip to content

Commit

Permalink
Added GitHub Actions as CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Hirevo committed Nov 27, 2019
1 parent a6665fa commit 09e1b56
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI

on:
pull_request:
push:
branches:
- master

jobs:
# build_and_test:
# name: Build and test
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest, macOS-latest]
# rust: [nightly-2019-09-03]
# steps:
# - name: Checkout master
# uses: actions/checkout@master
# - name: Install ${{ matrix.rust }} toolchain
# uses: actions-rs/toolchain@v1
# with:
# toolchain: ${{ matrix.rust }}
# override: true
# - name: Running cargo check
# uses: actions-rs/cargo@v1
# with:
# command: check
# args: --all --bins --examples
# - name: Running cargo check (unstable)
# uses: actions-rs/cargo@v1
# with:
# command: check
# args: --all --benches --bins --examples --tests
# - name: Running cargo tests
# uses: actions-rs/cargo@v1
# with:
# command: test
# args: --all

check_fmt:
name: Check code formatting
runs-on: ubuntu-latest
steps:
- name: Checkout master branch
uses: actions/checkout@master
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install rustfmt
run: |
rustup component add rustfmt
rustfmt --version
- name: Check formatting
run: cargo fmt --all -- --check

0 comments on commit 09e1b56

Please sign in to comment.