aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorVincent Prouillet2019-10-20 18:18:41 +0200
committerGitHub2019-10-20 18:18:41 +0200
commit97a11c88f26b00e897d21709d9576ad3cea6f220 (patch)
tree7469738d72627423c5b99df7dfae099951f4d322 /.github/workflows
parent87cf7cdac24dd0d4ea83a8a88640da95ae7ac93a (diff)
parent52cd62998b8f45be56512ce1d89aef8bf1a9f670 (diff)
downloadvalidator-97a11c88f26b00e897d21709d9576ad3cea6f220.tar.bz2
Merge pull request #87 from Keats/next
Use Github actions for CI
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..3212907
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,45 @@
+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.33.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