From a26470961db05333c9f826953185dd5942221428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Tue, 19 May 2020 14:17:37 +0200 Subject: [PATCH] Enable GitHub CI --- .github/workflows/format.yml | 12 ++++++++++++ .github/workflows/integration.yml | 16 ++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/format.yml create mode 100644 .github/workflows/integration.yml diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..92caff7 --- /dev/null +++ b/.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 diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 0000000..726b732 --- /dev/null +++ b/.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