github.com/RomiChan/protobuf@v0.1.1-0.20230204044148-2ed269a2e54d/.github/workflows/test.yml (about)

     1  name: Go
     2  
     3  on:
     4    push:
     5      branches: [ master, main ]
     6    pull_request:
     7      branches: [ master, main ]
     8  
     9  jobs:
    10  
    11    build:
    12      name: Build
    13      runs-on: ubuntu-latest
    14      steps:
    15  
    16        - name: Set up Go 1.x
    17          uses: actions/setup-go@v2
    18          with:
    19            go-version: ^1.13
    20  
    21        - name: Check out code into the Go module directory
    22          uses: actions/checkout@v2
    23  
    24        - name: Get dependencies
    25          run: |
    26            go get -v -t -d ./...
    27  
    28        - name: Vet
    29          run: go vet ./...
    30  
    31        - name: Build
    32          run: go build -v ./...
    33  
    34        - name: Test
    35          run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
    36  
    37        - name: Codecov
    38          uses: codecov/codecov-action@v2