refactor: remove retry attempt #154
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 | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
lint: | |
env: | |
CGO_ENABLED: 0 | |
GO111MODULE: on | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19.x | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: cache-go-${{ runner.os }}-1.15.x-${{ github.run_number }} | |
restore-keys: | | |
cache-go-${{ runner.os}}-1.19.x- | |
- name: Build | |
run: make build-all | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.50 | |
skip-pkg-cache: true | |
skip-build-cache: true | |
- name: Refresh GoReport | |
run: curl -XPOST --data 'repo=github.com/darthPestilane/easytcp' 'https://goreportcard.com/checks' | |
test: | |
needs: lint | |
env: | |
GO111MODULE: on | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-12, windows-latest] | |
go-version: [1.19.x, 1.20.x, 1.21.x] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Set up Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
~/Library/Caches/go-build | |
%LocalAppData%\go-build | |
~/go/pkg/mod | |
key: cache-go-${{ runner.os }}-${{ matrix.go-version }}-${{ github.run_number }} | |
restore-keys: | | |
cache-go-${{ runner.os }}-${{ matrix.go-version }}- | |
- name: Test | |
run: make test-v | |
- name: Upload coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: .testCoverage.txt |