This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
feat: upgrade version service client #355
Workflow file for this run
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 tests | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- main | |
- release-* | |
pull_request: | |
# cancel the in-progress workflow when PR is refreshed. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
unittests: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')" | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.20 | |
- name: ensure generate is noop | |
run: GOPATH=$(go env GOPATH) make ensure-generate-is-noop | |
- name: run unit tests | |
run: GOPATH=$(go env GOPATH) make -j $(nproc) test-only |