Bump golang version to v22 & remove user inputs default #707
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: Continuous Integration | |
on: | |
pull_request: | |
env: | |
GO_VERSION: "1.22" | |
PORT_CLIENT_ID: ${{ secrets.PORT_CLIENT_ID }} | |
PORT_CLIENT_SECRET: ${{ secrets.PORT_CLIENT_SECRET }} | |
CI_USER_NAME: ${{ secrets.CI_USER_NAME }} | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
cache: true | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.59 | |
- uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_version: 1.2.6 | |
terraform_wrapper: false | |
- name: Setup tools | |
run: make setup | |
acctest: | |
concurrency: | |
group: acctest | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
go: ['1.22'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- uses: actions/cache@v4 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Run dialect tests | |
run: make acctest CI_USER_NAME=${{ secrets.CI_USER_NAME }} PORT_CLIENT_ID=${{ secrets.PORT_CLIENT_ID }} PORT_CLIENT_SECRET=${{ secrets.PORT_CLIENT_SECRET }} PORT_BASE_URL=${{ secrets.PORT_BASE_URL }} |