[CI] Upgrade goreleaser version and fix deprecated methods #600
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.18" | |
PORT_CLIENT_ID: ${{ secrets.PORT_CLIENT_ID }} | |
PORT_CLIENT_SECRET: ${{ secrets.PORT_CLIENT_SECRET }} | |
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@v4 | |
with: | |
version: v1.48.0 | |
- 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.18', '1.19'] | |
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 PORT_CLIENT_ID=${{ secrets.PORT_CLIENT_ID }} PORT_CLIENT_SECRET=${{ secrets.PORT_CLIENT_SECRET }} PORT_BASE_URL=${{ secrets.PORT_BASE_URL }} |