...

Text file src/github.com/alibabacloud-go/tea/.github/workflows/go.yml

Documentation: github.com/alibabacloud-go/tea/.github/workflows

     1name: Go CI
     2
     3on:
     4  push:
     5    branches: [ master ]
     6  pull_request:
     7    branches: [ master ]
     8
     9jobs:
    10
    11  build:
    12    runs-on: ubuntu-latest
    13    strategy:
    14      matrix:
    15        go: ["1.13", "1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20"]
    16      fail-fast: false
    17
    18    steps:
    19    - name: Set up Go 1.x
    20      uses: actions/setup-go@v4
    21      with:
    22        go-version: ${{ matrix.go }}
    23
    24    - name: Check out code into the Go module directory
    25      uses: actions/checkout@v2
    26
    27    - name: Build Tea
    28      run: go build ./tea
    29    - name: Build Util
    30      run: go build ./utils
    31
    32    - name: Test
    33      run: go test -race -coverprofile=coverage.txt -covermode=atomic ./tea/... ./utils/...
    34    
    35    - name: CodeCov
    36      run: bash <(curl -s https://codecov.io/bash)

View as plain text