From 9554ba1116e2cbdf4ea565616c627792c1d03fa9 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Mon, 7 Oct 2019 20:23:31 +0200 Subject: Use Github actions for CI --- .github/workflows/ci.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/ci.yml (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..450a467 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,48 @@ +name: ci +on: [push, pull_request] + +jobs: + test_validator: + name: test validator + runs-on: ${{ matrix.os }} + strategy: + matrix: + build: [pinned, stable, nightly] + include: + - build: pinned + os: ubuntu-18.04 + rust: 1.32.0 + - build: stable + os: ubuntu-18.04 + rust: stable + - build: nightly + os: ubuntu-18.04 + rust: nightly + steps: + - uses: actions/checkout@v1 + - name: Install Rust + uses: hecrj/setup-rust-action@v1 + with: + rust-version: ${{ matrix.rust }} + - name: Build System Info + run: rustc --version + + - name: tests validator with all features + run: cd validator && cargo test --all-features + - name: tests validator with no features + run: cd validator && cargo test --no-default-features + + test_validator_derive: + name: test validator_derive + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v1 + - name: Install Rust + uses: hecrj/setup-rust-action@v1 + with: + rust-version: nightly + - name: tests validator_derive with all features + run: cd validator_derive && cargo test --all-features + - name: tests validator_derive with no features + run: cd validator_derive && cargo test --no-default-features + -- cgit v1.2.3 From 8fd0d392558422d95119a2e09f261bd4ac54e6d2 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Mon, 14 Oct 2019 20:38:48 +0200 Subject: Update deps --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 450a467..b394359 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,3 @@ jobs: rust-version: nightly - name: tests validator_derive with all features run: cd validator_derive && cargo test --all-features - - name: tests validator_derive with no features - run: cd validator_derive && cargo test --no-default-features - -- cgit v1.2.3 From 9bbd55ea056c275ca88342c69293e22480bc2466 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Thu, 17 Oct 2019 21:56:06 +0200 Subject: Try with Rust 1.33 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b394359..3212907 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: include: - build: pinned os: ubuntu-18.04 - rust: 1.32.0 + rust: 1.33.0 - build: stable os: ubuntu-18.04 rust: stable -- cgit v1.2.3