github.com/arthurnavah/cpuid/v2@v2.0.14/.github/workflows/go.yml (about)

     1  name: Go
     2  
     3  on:
     4    push:
     5      branches: [ master ]
     6    pull_request:
     7      branches: [ master ]
     8  
     9  jobs:
    10    build:
    11      strategy:
    12        matrix:
    13          go-version: [1.15.x, 1.16.x, 1.17.x]
    14          os: [ubuntu-latest, macos-latest, windows-latest]  
    15      runs-on: ubuntu-latest
    16      steps:
    17      - uses: actions/checkout@v2
    18  
    19      - name: Set up Go
    20        uses: actions/setup-go@v2
    21        with:
    22          go-version: ${{ matrix.go-version }}
    23  
    24      - name: Vet
    25        run: go vet ./...
    26  
    27      - name: Test
    28        run: go test ./...
    29  
    30      - name: Test Noasm
    31        run: go test -tags=noasm ./...
    32        
    33    build-special:
    34      env:
    35        CGO_ENABLED: 0
    36      runs-on: ubuntu-latest
    37      steps:
    38      - name: Set up Go
    39        uses: actions/setup-go@v2      
    40        with:
    41          go-version: 1.16.x
    42  
    43      - name: Checkout code
    44        uses: actions/checkout@v2
    45  
    46      - name: fmt
    47        run: diff <(gofmt -d .) <(printf "")
    48  
    49      - name: Test 386
    50        run: GOOS=linux GOARCH=386 go test -short ./...
    51  
    52      - name: goreleaser deprecation
    53        run: curl -sfL https://git.io/goreleaser | VERSION=v0.162.0 sh -s -- check
    54        
    55      - name: goreleaser snapshot
    56        run: curl -sL https://git.io/goreleaser | VERSION=v0.162.0 sh -s -- --snapshot --skip-publish --rm-dist
    57