Update #624
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: "Unit Test" | |
on: [ push,pull_request ] | |
jobs: | |
go: | |
name: Test go and binlog generation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: "1.16" | |
- name: Install protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
version: '3.5.1' | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Test | |
run: make go binlog && git diff --exit-code | |
cpp: | |
name: Test cpp generation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
version: '3.5.1' | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Test | |
run: make c++ && git diff --exit-code | |
rust: | |
name: Test rust generation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
version: '3.5.1' | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Test | |
run: make rust |