diff options
| author | Vincent Prouillet | 2019-10-20 18:18:41 +0200 |
|---|---|---|
| committer | GitHub | 2019-10-20 18:18:41 +0200 |
| commit | 97a11c88f26b00e897d21709d9576ad3cea6f220 (patch) | |
| tree | 7469738d72627423c5b99df7dfae099951f4d322 /.github | |
| parent | 87cf7cdac24dd0d4ea83a8a88640da95ae7ac93a (diff) | |
| parent | 52cd62998b8f45be56512ce1d89aef8bf1a9f670 (diff) | |
| download | validator-97a11c88f26b00e897d21709d9576ad3cea6f220.tar.bz2 | |
Merge pull request #87 from Keats/next
Use Github actions for CI
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 45 |
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 |
