github.com/puzpuzpuz/xsync/v2@v2.5.2-0.20231021165734-92b8269e19a9/.github/workflows/build.yml (about)

     1  name: build
     2  on: [push]
     3  
     4  jobs:
     5    test:
     6      runs-on: ubuntu-latest
     7      strategy:
     8        matrix:
     9          go-version: [1.21.x]
    10      name: Build with Go ${{ matrix.go-version }}
    11      steps:
    12        - uses: actions/checkout@v3
    13  
    14        - name: Install Go
    15          uses: actions/setup-go@v3
    16          with:
    17            go-version: ${{ matrix.go-version }}
    18  
    19        - name: Run vet
    20          run: go vet ./...
    21  
    22        - name: Run staticcheck
    23          uses: dominikh/staticcheck-action@v1.3.0
    24          with:
    25            version: "2023.1.2"
    26            install-go: false
    27            cache-key: ${{ matrix.go-version }}
    28  
    29        - name: Run tests
    30          run: go test -v ./...
    31  
    32        - name: Run tests with race detector
    33          run: go test -timeout 10m -race -v ./...