Skip to content

build(deps): bump github.com/pulumi/pulumi-terraform-bridge/v3 #748

build(deps): bump github.com/pulumi/pulumi-terraform-bridge/v3

build(deps): bump github.com/pulumi/pulumi-terraform-bridge/v3 #748

Workflow file for this run

name: lint
on:
workflow_call:
inputs: {}
push: {}
pull_request:
branches:
- main
- v*
- feature*
permissions:
contents: read
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Markdown lint
uses: DavidAnson/markdownlint-cli2-action@v19
with:
globs: 'docs/*.md'
- name: Install go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version-file: 'provider/go.mod'
- name: disarm go:embed directives to enable lint
continue-on-error: true # this fails if there are no go:embed directives
run: |
git grep -l 'go:embed' -- provider | xargs sed -i 's/go:embed/ goembed/g'
- name: prepare upstream
continue-on-error: true
run: make upstream
- run: cd provider && go mod tidy
- name: golangci-lint
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6.2.0
with:
version: v1.62.2
working-directory: provider
skip-pkg-cache: true