github.com/moznion/go-optional@v0.11.1-0.20240312043125-6881072e44c1/.github/workflows/check.yml (about) 1 on: 2 push: 3 4 jobs: 5 test: 6 name: Check 7 strategy: 8 matrix: 9 go-version: [1.18.x, 1.19.x, 1.20.x, 1.21.x] 10 os: [ubuntu-latest] 11 runs-on: ${{ matrix.os }} 12 steps: 13 - name: Set up Go 14 uses: actions/setup-go@v4 15 with: 16 go-version: ${{ matrix.go-version }} 17 - name: check out 18 uses: actions/checkout@v4 19 - name: install tools 20 run: "go install golang.org/x/tools/cmd/goimports@latest" 21 - name: golangci-lint 22 uses: golangci/golangci-lint-action@v3 23 with: 24 version: latest 25 args: --timeout=5m 26 - name: check 27 run: make ci-check 28 - name: upload coverage 29 uses: codecov/codecov-action@v3 30 with: 31 token: ${{ secrets.CODECOV_TOKEN }} 32