Files
tonic/.github/workflows/CI.yml
T
James NugentandLucio Franco b2c1d2e2b7 Add Windows build for interop crate (#126)
* Update rust interop test binaries to v1.25.1

* Add Windows build for interop crate
2019-11-10 12:15:39 +01:00

79 lines
1.7 KiB
YAML

name: CI
on:
push:
branches:
- master
pull_request: {}
jobs:
check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [stable]
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: hecrj/setup-rust-action@master
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@master
- name: Install rustfmt
run: rustup component add rustfmt
- name: Install cargo-hack
run: cargo install cargo-hack
- name: Check fmt
run: cargo fmt -- --check
- name: Check features
run: cargo hack check --all --each-feature --no-dev-deps
- name: Check all targets
run: cargo check --all --all-targets --all-features
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [stable]
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: hecrj/setup-rust-action@master
with:
rust-version: ${{ matrix.rust }}
- name: Install rustfmt
run: rustup component add rustfmt
- uses: actions/checkout@master
- name: Run tests
run: cargo test --all --all-features
interop:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
rust: [stable]
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: hecrj/setup-rust-action@master
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@master
- name: Install rustfmt
run: rustup component add rustfmt
- name: Run interop tests
run: ./tonic-interop/test.sh
shell: bash
- name: Run interop tests with tls
run: ./tonic-interop/test.sh --use_tls
shell: bash