...

Text file src/github.com/aliyun/credentials-go/.github/workflows/go.yml

Documentation: github.com/aliyun/credentials-go/.github/workflows

     1name: Go
     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        # test against latest update of each major Java version, as well as specific updates of LTS versions:
    16        go: [1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18]
    17      fail-fast: false
    18
    19    steps:
    20    - uses: actions/checkout@v3
    21    - name: Setup Go
    22      uses: actions/setup-go@v4
    23      with:
    24        go-version: ${{ matrix.go }}
    25
    26    - name: Go Mod
    27      run: go mod tidy
    28
    29    - name: Build
    30      run: go build ./credentials
    31
    32    - name: Test
    33      run: go test -race -coverprofile=coverage.txt -covermode=atomic ./credentials/...
    34
    35    - name: Integration Test
    36      run: go test -v -timeout 120s ./integration/...
    37      env:
    38          SUB_ALICLOUD_ACCESS_KEY: ${{ secrets.SUB_ALICLOUD_ACCESS_KEY }}
    39          SUB_ALICLOUD_SECRET_KEY: ${{ secrets.SUB_ALICLOUD_SECRET_KEY }}
    40          ALICLOUD_ROLE_ARN: ${{ secrets.ALICLOUD_ROLE_ARN }}
    41          ALICLOUD_ROLE_SESSION_NAME: ${{ secrets.ALICLOUD_ROLE_SESSION_NAME }}
    42          ALICLOUD_ROLE_SESSION_EXPIRATION: ${{ secrets.ALICLOUD_ROLE_SESSION_EXPIRATION }}
    43
    44    - name: CodeCov
    45      run: bash <(curl -s https://codecov.io/bash) -cF credentials-go

View as plain text