55 lines
1.9 KiB
YAML
55 lines
1.9 KiB
YAML
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
|
|
|
|
name: lint
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs: {}
|
|
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
|
|
PUBLISH_REPO_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
|
|
PUBLISH_REPO_USERNAME: ${{ secrets.OSSRH_USERNAME }}
|
|
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
|
|
PULUMI_API: https://api.pulumi-staging.io
|
|
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
|
|
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
|
|
PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
|
PYPI_USERNAME: __token__
|
|
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }}
|
|
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }}
|
|
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
|
|
TF_APPEND_USER_AGENT: pulumi
|
|
|
|
jobs:
|
|
lint:
|
|
name: lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
persist-credentials: false
|
|
- name: Install go
|
|
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
|
|
with:
|
|
# The versions of golangci-lint and setup-go here cross-depend and need to update together.
|
|
go-version: 1.23
|
|
# Either this action or golangci-lint needs to disable the cache
|
|
cache: false
|
|
- 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 workspace
|
|
continue-on-error: true
|
|
run: make prepare_local_workspace
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6
|
|
with:
|
|
version: v1.64.6
|
|
working-directory: provider
|