.github: add Action to run root tests
@@ -64,3 +64,21 @@ jobs:
run: find . -name go.mod -execdir sh -c 'go build ./... || touch build_failed.txt' \; ; test ! -f build_failed.txt
- name: shellcheck
run: find . -name "*.sh" -exec shellcheck {} \;
+ test:
+ if: |
+ github.event.action != 'labeled' ||
+ github.event.label.name == 'cla: yes' ||
+ github.event.label.name == 'cla: no' ||
+ github.event.label.name == 'trigger-ci' ||
+ github.event.label.name == 'kokoro:run' ||
+ github.event.label.name == 'kokoro:force-run'
+ name: Root tests
+ runs-on: ubuntu-latest
+ steps:
+ - name: Setup Go
+ uses: actions/setup-go@v2-beta
+ with:
+ go-version: '^1.14'
+ - name: Check code
+ uses: actions/checkout@v2
+ - run: go test -v
