github.com/xgzlucario/GigaCache@v0.0.0-20240508025442-54204e9c8a6b/.github/workflows/rotom.yml (about) 1 name: Test 2 3 on: [push, pull_request] 4 5 jobs: 6 lint: 7 runs-on: ubuntu-latest 8 steps: 9 - name: Setup go 10 uses: actions/setup-go@v5 11 with: 12 go-version: '1.22.0' 13 - name: Checkout repository 14 uses: actions/checkout@v4 15 - name: Setup golangci-lint 16 uses: golangci/golangci-lint-action@v3.7.0 17 with: 18 version: v1.55.2 19 args: --verbose 20 21 test: 22 runs-on: ubuntu-latest 23 steps: 24 - uses: actions/checkout@v4 25 - uses: actions/setup-go@v4 26 with: 27 go-version: 'stable' 28 - name: Run coverage 29 run: go test -race -coverprofile=coverage.txt -covermode=atomic 30 - name: Upload coverage to Codecov 31 uses: codecov/codecov-action@v4-beta 32 with: 33 token: ${{ secrets.CODECOV_TOKEN }}