Separated protobuf related functions #42
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 CLI | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
lint: | |
name: Lint sources | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
version: latest | |
test: | |
name: Test sources | |
strategy: | |
fail-fast: false | |
max-parallel: 3 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22 | |
- name: Test Go | |
run: go test -race ./... | |
test-status: | |
name: Test status | |
runs-on: ubuntu-latest | |
needs: [lint, test] | |
steps: | |
- name: Set Check Status Success | |
uses: Sibz/github-status-action@v1.1.1 | |
with: | |
context: test-status | |
authToken: ${{ secrets.GITHUB_TOKEN }} | |
state: success |