Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Travis CI and add GitHub Actions #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

name: Continuous integration

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- rust: 1.42.0 # MSRV
- rust: stable
features: unstable quickcheck
test_all: --all
- rust: beta
test_all: --all
- rust: nightly
features: unstable quickcheck
test_all: --all
bench: true

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Build
run: |
cargo build --verbose --no-default-features
cargo build --verbose --features "${{ matrix.features }}"
- name: Tests
run: |
cargo test --verbose --no-default-features
cargo test ${{ matrix.test_all }} --verbose --features "${{ matrix.features }}"
- name: Build benchmarks
if: ${{ matrix.bench }}
run: |
cargo bench --verbose --no-run
cargo bench --verbose --no-run --all-features

rustfmt:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
include:
- rust: stable
rustfmt: rustfmt

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
components: ${{ matrix.rustfmt }}
override: true
- name: Rustfmt
if: matrix.rustfmt
run: cargo fmt -- --check
7 changes: 0 additions & 7 deletions travis.sh

This file was deleted.