Skip to content

Commit

Permalink
Switch to GitHub Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkmoody committed Feb 13, 2021
1 parent 411d8c4 commit 1ee3bc7
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 27 deletions.
85 changes: 85 additions & 0 deletions .github/workflows/rust.yml
@@ -0,0 +1,85 @@
on: [push, pull_request]

name: Continuous Integration

jobs:
check:
name: Check
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.29.0
- stable
- nightly
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
with:
command: check

test:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.29.0
- stable
- nightly
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --features strict

fmt:
name: Rustfmt
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

0 comments on commit 1ee3bc7

Please sign in to comment.