Skip to content

fix(deps): update all non-major dependencies #224

fix(deps): update all non-major dependencies

fix(deps): update all non-major dependencies #224

name: extensive tests
on:
push:
branches:
- main
paths:
- go.mod
- go.sum
- '**.go'
merge_group:
type:
- checks_requested
pull_request:
paths:
- go.mod
- go.sum
- '**.go'
types:
- opened
- synchronize
- reopened
- labeled
permissions:
contents: read
# Ensures only 1 action runs per PR and previous is canceled on new trigger
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version-file: 'go.mod'
- run: make build
- name: Run linters
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6
with:
version: latest
test-terraform:
name: integration-terraform
needs: build
runs-on: ubuntu-latest
if: '!github.event.pull_request.head.repo.fork'
timeout-minutes: 30
strategy:
fail-fast: false
max-parallel: 1
matrix:
terraform:
- '1.6.*'
- '1.9.*'
- latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- run: make testacc
env:
PLANETSCALE_SERVICE_TOKEN_ID: ${{ secrets.PLANETSCALE_SERVICE_TOKEN_ID }}
PLANETSCALE_SERVICE_TOKEN: ${{ secrets.PLANETSCALE_SERVICE_TOKEN }}
timeout-minutes: 10
test-tofu:
name: integration-tofu
needs: build
runs-on: ubuntu-latest
if: '!github.event.pull_request.head.repo.fork'
timeout-minutes: 30
strategy:
max-parallel: 1
fail-fast: false
matrix:
tofu:
- '1.6.*'
- '1.7.*'
- '1.8.*'
- latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version-file: 'go.mod'
- uses: opentofu/setup-opentofu@592200bd4b9bbf4772ace78f887668b1aee8f716 # v1
with:
tofu_version: ${{ matrix.tofu }}
tofu_wrapper: false
- run: make testacc
env:
PLANETSCALE_SERVICE_TOKEN_ID: ${{ secrets.PLANETSCALE_SERVICE_TOKEN_ID }}
PLANETSCALE_SERVICE_TOKEN: ${{ secrets.PLANETSCALE_SERVICE_TOKEN }}
timeout-minutes: 10