Skip to content

Commit

Permalink
Replace Travis with GHA (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
CAD97 committed May 2, 2020
1 parent 168687d commit 93d626a
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 34 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/ci.yaml
@@ -0,0 +1,56 @@
name: CI
on:
push:
branches:
- staging
- trying
- master

jobs:

tests:
name: Tests
runs-on: ubuntu-latest

strategy:
matrix:
rust: [stable, nightly]

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- run: cargo test
- run: cargo test --all-features

clippy:
name: "Clippy: stable"
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ github.token }}

rustfmt:
name: "Format: stable"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt
override: true
- run: cargo fmt -- --check
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion bors.toml
@@ -1,5 +1,6 @@
status = [
"continuous-integration/travis-ci/push",
"Tests",
"Format: stable",
]

block_labels = [
Expand Down

0 comments on commit 93d626a

Please sign in to comment.