Enable GitHub CI

This commit is contained in:
Héctor Ramón Jiménez 2020-05-19 14:17:37 +02:00
parent 212b57617e
commit a26470961d
2 changed files with 28 additions and 0 deletions

12
.github/workflows/format.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: Format
on: [push, pull_request]
jobs:
all:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
with:
components: rustfmt
- uses: actions/checkout@master
- name: Check format
run: cargo fmt --all -- --check

16
.github/workflows/integration.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Integration
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [stable, beta]
steps:
- uses: actions/checkout@master
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- name: Run tests
run: cargo test --verbose