github.com/bodgit/sevenzip@v1.5.1/.github/workflows/build.yml (about) 1 name: Build 2 on: 3 push: 4 branches: 5 - main 6 pull_request: 7 branches: 8 - main 9 workflow_dispatch: 10 schedule: 11 - cron: 0 0 * * 1 12 13 permissions: 14 contents: read 15 16 jobs: 17 test: 18 name: Build and Test 19 runs-on: ubuntu-latest 20 strategy: 21 fail-fast: false 22 matrix: 23 go: 24 - '1.21' 25 - '1.22' 26 27 permissions: 28 checks: write 29 contents: read 30 pull-requests: read 31 32 steps: 33 - name: Checkout 34 uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 35 36 - name: Set up Go 37 uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 38 with: 39 go-version: ${{ matrix.go }} 40 41 - name: golangci-lint 42 uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v3.7.1 43 if: github.event_name == 'pull_request' 44 with: 45 only-new-issues: true 46 47 - name: Test 48 run: go test -v -coverprofile=cover.out ./... 49 50 - name: Send coverage 51 uses: shogo82148/actions-goveralls@785c9d68212c91196d3994652647f8721918ba11 # v1.9.0 52 with: 53 path-to-profile: cover.out 54 flag-name: Go-${{ matrix.go }} 55 parallel: true 56 57 finish: 58 needs: test 59 runs-on: ubuntu-latest 60 61 permissions: 62 checks: write 63 64 steps: 65 - uses: shogo82148/actions-goveralls@785c9d68212c91196d3994652647f8721918ba11 # v1.9.0 66 with: 67 parallel-finished: true