Enable GitHub CI
This commit is contained in:
parent
212b57617e
commit
a26470961d
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue