...

Text file src/github.com/aws/aws-sdk-go-v2/.github/workflows/go.yml

Documentation: github.com/aws/aws-sdk-go-v2/.github/workflows

     1name: Go Tests
     2
     3on:
     4  push:
     5    branches:
     6      - main
     7  pull_request:
     8    branches:
     9      - main
    10      - 'feat-**'
    11
    12env:
    13  EACHMODULE_CONCURRENCY: 2
    14  SMITHY_GO_REPOSITORY: ${{ github.event.pull_request.head.repo.owner.login }}/smithy-go
    15  GIT_PAT: ${{ secrets.CI_GIT_PAT}}
    16
    17jobs:
    18  unix-tests:
    19    name: Unix SDK tests
    20    runs-on: ${{ matrix.os }}
    21    strategy:
    22      matrix:
    23        os: [ubuntu-latest, macos-latest]
    24        go-version: ["1.20", "1.21", "1.22"]
    25    steps:
    26    - uses: actions/checkout@v2
    27
    28    - name: Set up Go
    29      uses: actions/setup-go@v2
    30      with:
    31        go-version: ${{ matrix.go-version }}
    32
    33    - name: Find smithy-go
    34      env:
    35        RUNNER_TMPDIR: ${{ runner.temp }}
    36      run: ./ci-find-smithy-go.sh
    37
    38    - name: Install golint
    39      run: go install golang.org/x/lint/golint@latest
    40
    41    - name: Test
    42      run: make ci-test-no-generate
    43
    44  x86-tests:
    45    name: Unix x86 SDK tests
    46    runs-on: ${{ matrix.os }}
    47    strategy:
    48      matrix:
    49        os: [ubuntu-latest]
    50        go-version: ["1.22"]
    51    env:
    52      GOARCH: "386"
    53    steps:
    54    - uses: actions/checkout@v2
    55
    56    - name: Set up Go
    57      uses: actions/setup-go@v2
    58      with:
    59        go-version: ${{ matrix.go-version }}
    60
    61    - name: Find smithy-go
    62      env:
    63        RUNNER_TMPDIR: ${{ runner.temp }}
    64      run: ./ci-find-smithy-go.sh
    65
    66    - name: Install golint
    67      run: go install golang.org/x/lint/golint@latest
    68
    69    - name: Test
    70      run: make unit
    71
    72  windows-tests:
    73    name: Windows SDK Tests
    74    runs-on: ${{ matrix.os }}
    75    strategy:
    76      matrix:
    77        os: [windows-latest]
    78        go-version: ["1.20", "1.21", "1.22"]
    79    env:
    80      EACHMODULE_SKIP: "internal\\repotools\\changes"
    81    steps:
    82    - uses: actions/checkout@v2
    83
    84    - name: Set up Go
    85      uses: actions/setup-go@v2
    86      with:
    87        go-version: ${{ matrix.go-version }}
    88
    89    - name: Find smithy-go
    90      shell: bash
    91      env:
    92        RUNNER_TMPDIR: ${{ runner.temp }}
    93      run: ./ci-find-smithy-go.sh
    94
    95    - name: Test
    96      run: make vet build unit-test

View as plain text