Replace travis with github actions

This commit is contained in:
Marcel Müller
2020-07-01 15:02:47 +02:00
parent bd82676aea
commit f52b3e6e5c
2 changed files with 71 additions and 19 deletions
+71
View File
@@ -0,0 +1,71 @@
on: [push, pull_request]
name: Quickstart
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --all-features
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
-19
View File
@@ -1,19 +0,0 @@
sudo: false
language: rust
cache: cargo
rust:
- nightly
- beta
- stable
env:
global:
- FEATURES=yaml_enc,bin_enc,ron_enc,mmap
script:
- |
cargo build --features $FEATURES &&
cargo test --features $FEATURES &&
cargo doc --features $FEATURES
matrix:
allow_failures:
- rust: nightly
fast_finish: true