feat(dp): add master-slave pattern example #242
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: build-test-lint | |
on: | |
push: | |
tags: [v*] | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: ["1.23", "1.22"] | |
name: Go ${{ matrix.go }} test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Install Task | |
uses: arduino/setup-task@v2 | |
with: | |
version: 3.x | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: latest | |
- name: Lint | |
run: task lint | |
- name: Test | |
run: task test | |
# - name: Bench | |
# run: task bench | |
- name: Build | |
run: task build | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
# token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.out |