Skip to content

PORT-4628-terraform-add-examples-of-webhook-and-scorecard-resources #322

PORT-4628-terraform-add-examples-of-webhook-and-scorecard-resources

PORT-4628-terraform-add-examples-of-webhook-and-scorecard-resources #322

Workflow file for this run

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@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.48.0
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.2.6
terraform_wrapper: false
- name: Setup tools
run: make setup
acctest:
runs-on: ubuntu-20.04
strategy:
matrix:
go: ['1.18', '1.19']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- uses: actions/cache@v3
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 }}