Fixes #337
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test our build | |
on: | |
push: | |
branches: [ main, rc ] | |
pull_request: | |
branches: [ main, rc ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
- name: Test out our build | |
run: | | |
ver=$(cat Cargo.toml | grep -m1 version | grep -Eo '["\047].*["\047]' | tr -d '"') | |
echo $ver | |
cargo test |