Files
tonic/.github/workflows/rust.yml
T
2019-09-01 13:04:33 -04:00

24 lines
564 B
YAML

name: Test Rust project
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: Run fmt
run: cargo fmt -- --check
- name: Run check
run: cargo check --all --all-features --all-targets
- name: Run tests
run: cargo test --all
- name: Run interop tests
run: ./tonic-interop/test.sh