Browse Source

Enable GitHub CI

master
Héctor Ramón Jiménez 1 year ago
parent
commit
a26470961d
  1. 12
      .github/workflows/format.yml
  2. 16
      .github/workflows/integration.yml

12
.github/workflows/format.yml

@ -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

@ -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…
Cancel
Save