Skip to content

Commit

Permalink
Add GitHub Actions test
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturKovacs committed Apr 15, 2020
1 parent 7025e10 commit 0c8b1fa
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Rust

on:
push:
branches: [ master, dev-v2 ]
pull_request:
branches: [ master, dev-v2 ]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust:
- stable
- nightly

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy

- uses: actions-rs/cargo@v1
with:
command: build
args: --verbose
- uses: actions-rs/cargo@v1
with:
command: test
args: --verbose
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings

0 comments on commit 0c8b1fa

Please sign in to comment.