Files
tonic/.github/workflows/rust.yml
T
2019-09-02 19:03:07 -04:00

30 lines
778 B
YAML

name: Tonic gRPC
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
rust: [nightly]
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 fmt
run: cargo fmt -- --check
- name: Run check
run: cargo check --all
- name: Run check with no default features
run: cargo check --all --no-default-features
- name: Run tests
run: cargo test --all
- name: Run interop tests
run: ./tonic-interop/test.sh
- name: Run interop tests with tls
run: ./tonic-interop/test.sh --use_tls