...

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

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

     1name: Codegen Tests
     2
     3on:
     4  push:
     5    branches: [ main ]
     6  pull_request:
     7    branches: [ main ]
     8
     9env:
    10  # get owner of the repository. used by forks.
    11  SMITHY_GO_REPOSITORY: ${{ github.event.pull_request.head.repo.owner.login }}/smithy-go
    12
    13jobs:
    14  codegen-test:
    15    name: SDK Codegen Test
    16    runs-on: ${{ matrix.os }}
    17    strategy:
    18      matrix:
    19        os: [ubuntu-latest]
    20        go-version: ["1.20"]
    21    env:
    22      JAVA_TOOL_OPTIONS: "-Xmx2g"
    23    steps:
    24    - uses: actions/checkout@v2
    25      with:
    26        fetch-depth: 0
    27
    28    - name: Download Coretto 17 JDK
    29      run: |
    30        download_url="https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz"
    31        wget -O $RUNNER_TEMP/java_package.tar.gz $download_url
    32
    33    - name: Set up Coretto 17 JDK
    34      uses: actions/setup-java@v2
    35      with:
    36        distribution: 'jdkfile'
    37        jdkFile: ${{ runner.temp }}/java_package.tar.gz
    38        java-version: 17
    39        architecture: x64
    40
    41    - uses: actions/setup-go@v2
    42      with:
    43        go-version: ${{ matrix.go-version }}
    44
    45    - name: Find smithy-go
    46      shell: bash
    47      env:
    48        RUNNER_TMPDIR: ${{ runner.temp }}
    49      run: ./ci-find-smithy-go.sh
    50
    51    - name: Build and publish smithy-go
    52      working-directory: ${{ runner.temp }}/smithy-go
    53      run: make smithy-publish-local
    54
    55    - name: Cleanup smithy-go
    56      run: rm -rf ${{ runner.temp }}/smithy-go
    57
    58    - name: SDK Codegen
    59      run: make smithy-generate
    60

View as plain text