Skip to content

Commit

Permalink
Explore GitHub Actions instead of Travis
Browse files Browse the repository at this point in the history
Travis isn't building new PRs, so it seems a perfect opportunity to try
something else.
  • Loading branch information
paholg committed Mar 12, 2021
1 parent 581bc6b commit 29c5522
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 50 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
on:
push:
branches:
- main
pull_request:
branches:
- main

name: CI

jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.22.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
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
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
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- uses: actions-rs/cargo@v1
with:
command: clippy
# Allow deprecated because we test the no_std feature.
args: --all-features -- -D warnings -A deprecated
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

0 comments on commit 29c5522

Please sign in to comment.