Skip to content

Commit

Permalink
Create rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Mar 24, 2020
1 parent 214ff66 commit d7e75dd
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/rust.yml
@@ -0,0 +1,30 @@
name: Rust

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Rust nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: clippy, rustfmt
override: true
- name: Build
run: cargo build --verbose
- name: Check formatting # Doesn't fail build
run: cargo fmt -- --check # --error-on-unformatted
- name: Run tests # Doesn't fail build
run: cargo clippy
- name: Run tests
run: cargo test --verbose

0 comments on commit d7e75dd

Please sign in to comment.