Skip to content

Commit

Permalink
Add tests for Windows and MacOS as well as the nightly toolchain.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturKovacs committed Apr 15, 2020
1 parent cf7d22f commit 29876c7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 51 deletions.
40 changes: 32 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,42 @@ name: Rust

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

jobs:
build:

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

steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- 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
43 changes: 0 additions & 43 deletions rust.yml

This file was deleted.

0 comments on commit 29876c7

Please sign in to comment.