aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Prouillet2019-10-07 20:23:31 +0200
committerVincent Prouillet2019-10-07 20:52:40 +0200
commit9554ba1116e2cbdf4ea565616c627792c1d03fa9 (patch)
tree5a1e10aa096682ce49d536ddc5846e3c7bbd4d27
parent87cf7cdac24dd0d4ea83a8a88640da95ae7ac93a (diff)
downloadvalidator-9554ba1116e2cbdf4ea565616c627792c1d03fa9.tar.bz2
Use Github actions for CI
-rw-r--r--.github/workflows/ci.yml48
-rw-r--r--.travis.yml11
2 files changed, 48 insertions, 11 deletions
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
+
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index e379ead..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-language: rust
-
-rust:
- - nightly
-
-script:
- - (cd validator && cargo test --all-features)
- - (cd validator_derive && cargo clean && cargo test --all-features)
-
-notifications:
- email: false