[DVT-819][DVT-903] Use p2p.Server and refactor #559
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: CI | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "**" | |
types: [opened, synchronize] | |
concurrency: | |
group: build-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
if: (github.event.action != 'closed' || github.event.pull_request.merged == true) | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
- name: Install golangci-lint | |
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin | |
- name: Install shadow | |
run: go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest | |
- name: Run all the linter tools against code | |
run: make lint | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
if: (github.event.action != 'closed' || github.event.pull_request.merged == true) | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
- name: Run tests | |
run: make test |