Skip to content

Commit

Permalink
[internal] Update GitHub Actions workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot committed Jan 14, 2024
1 parent bd3ca4d commit 52d07e5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ jobs:
- name: Echo Coverage Output Dir
run: 'echo "Coverage output directory: ${{ env.COVERAGE_OUTPUT_DIR }}"'
- name: Generate Coverage Data
run: make tfgen
run: PULUMI_MISSING_DOCS_ERROR=true make tfgen
- name: Summarize Provider Coverage Results
run: cat ${{ env.COVERAGE_OUTPUT_DIR }}/shortSummary.txt
- name: Upload coverage data to S3
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/upgrade-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
- upgrade-bridge
workflow_dispatch:
inputs:
kind:
description: Overrides the kind of upgrade. Must be one of `all`, `bridge`, `provider`, `code`, `pf`, or `pulumi`.
required: false
type: string
default: "bridge"
target-bridge-version:
description: pulumi-terraform-bridge version or hash reference
required: false
Expand Down Expand Up @@ -50,7 +55,7 @@ jobs:
if: github.event_name == 'workflow_dispatch'
uses: pulumi/[email protected]
with:
kind: bridge
kind: ${{ inputs.kind }}
email: [email protected]
username: pulumi-bot
automerge: ${{ inputs.automerge }}
Expand All @@ -62,7 +67,7 @@ jobs:
if: github.event_name == 'repository_dispatch'
uses: pulumi/[email protected]
with:
kind: bridge
kind: ${{ inputs.kind }}
email: [email protected]
username: pulumi-bot
automerge: ${{ github.event.client_payload.automerge }}
Expand Down
10 changes: 10 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,19 @@ linters:
- structcheck
- unconvert
- varcheck
- gci
enable-all: false
run:
skip-files:
- schema.go
- pulumiManifest.go
timeout: 20m
linters-settings:
gci:
sections:
- standard # Standard section: captures all standard library packages.
- blank # Blank section: contains all blank imports.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(github.com/pulumi/) # Custom section: groups all imports with the github.com/pulumi/ prefix.
- prefix(github.com/pulumi/pulumi-digitalocean) # Custom section: local imports
custom-order: true
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ install_plugins: .pulumi/bin/pulumi
lint_provider: provider
cd provider && golangci-lint run -c ../.golangci.yml

# `lint_provider.fix` is a utility target meant to be run manually
# that will run the linter and fix errors when possible.
lint_provider.fix:
cd provider && golangci-lint run -c ../.golangci.yml --fix

# `make provider_no_deps` builds the provider binary directly, without ensuring that
# `cmd/pulumi-resource-digitalocean/schema.json` is valid and up to date.
# To create a release ready binary, you should use `make provider`.
Expand Down

0 comments on commit 52d07e5

Please sign in to comment.