This commit is contained in:
Alfan Nur Fauzan 2021-08-18 10:41:42 +07:00
Родитель 25fba596df
Коммит 1a821b9ecb
1 изменённых файлов: 3 добавлений и 2 удалений

5
.github/workflows/go.yml поставляемый
Просмотреть файл

@ -44,13 +44,14 @@ jobs:
run: |
protoc -I. -Iexamples --plugin=./protoc-gen-bq-schema --bq-schema_out=examples examples/foo.proto
protoc -I. -Iexamples --plugin=./protoc-gen-bq-schema --bq-schema_out=examples examples/foo-proto3.proto
protoc -I. -Iexamples --plugin=./protoc-gen-bq-schema --bq-schema_out=examples --bq-schema_opt=single-message examples/single_message.proto
- name: Verify examples are working
run: |
if [ -n "$(git status --porcelain)" ]; then
git status # Show the files that failed to pass the check.
exit 1
fi
test:
name: Root tests
runs-on: ubuntu-latest
@ -58,7 +59,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '^1.15'
go-version: '^1.16'
- name: Check code
uses: actions/checkout@v2
- run: go test -v