Skip to content

Commit

Permalink
fix(ci): fix validate examples (#494)
Browse files Browse the repository at this point in the history
Follow up fix to #492
  • Loading branch information
jharley authored Jun 20, 2024
1 parent 27a7704 commit 1c60e56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/validate-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ name: Validate Examples

on:
workflow_dispatch:
push:
push:
paths-ignore:
- README.md
- CHANGELOG.md
- CONTRIBUTING.md

jobs:
validate:
runs-on: ubuntu-latest
name: Validate examples
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
Expand All @@ -19,10 +23,10 @@ jobs:
cache: true

- name: Build
run: go build -o tmp/providers/terraform-provider-honeycombio
run: go build -o /tmp/providers/terraform-provider-honeycombio

- name: Validate examples
env:
TF_IN_AUTOMATION: 1
TF_CLI_CONFIG_FILE: ".terraformrc.local"
run: ./scripts/validate-examples example
run: |
TF_CLI_CONFIG_FILE="$GITHUB_WORKSPACE/.terraformrc.local" ./scripts/validate-examples example
2 changes: 1 addition & 1 deletion .terraformrc.local
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# override installation to use a locally build provider in "tmp/providers"
provider_installation {
dev_overrides {
"honeycombio/honeycombio" = "./tmp/providers"
"honeycombio/honeycombio" = "/tmp/providers"
}

# For all other providers, install them directly from their origin provider
Expand Down

0 comments on commit 1c60e56

Please sign in to comment.