CI - Update Go to 1.21 #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Workflow | |
on: [pull_request, workflow_dispatch] | |
env: | |
GO_VERSION_BUILD: '1.21' | |
JAVA_VERSION: '11' | |
jobs: | |
main: | |
name: CI | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
go-version: ['1.18', '1.19', '1.20', '1.21'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install SSH Key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }} | |
- name: Install Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
uses: ./.github/actions/build | |
with: | |
go-version: ${{ env.GO_VERSION_BUILD }} | |
- name: Generate SDK | |
uses: ./.github/actions/generate-sdk | |
- name: Install Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Lint | |
if: ${{ matrix.go-version == '1.19' || matrix.go-version == '1.20' || matrix.go-version == '1.21' }} | |
working-directory: ./sdk-repo-updated | |
run: make lint skip-non-generated-files=true | |
- name: Test | |
working-directory: ./sdk-repo-updated | |
run: make test skip-non-generated-files=true |