generated from hashicorp/terraform-provider-scaffolding-framework
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from flovouin/chore/ci-pull-request
👷 Set up CI for pull requests
- Loading branch information
Showing
3 changed files
with
59 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Pull request | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: 🧪 Run tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: "go.mod" | ||
|
||
- name: Build provider | ||
run: make provider | ||
|
||
- name: Build mbtf | ||
run: make mbtf | ||
|
||
- name: Run tests | ||
run: make testacc-with-setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,28 @@ | ||
.EXPORT_ALL_VARIABLES: | ||
.PHONY: set-up-docker tear-down-docker testacc testacc-with-setup clean-testacc provider clean generate | ||
|
||
METABASE_USERNAME?[email protected] | ||
METABASE_PASSWORD?=$(shell uuidgen) | ||
METABASE_URL?=http://localhost:3000/api | ||
|
||
PG_HOST?=terraform-metabase-pg | ||
PG_USER?=metabase | ||
PG_PASSWORD?=$(shell uuidgen) | ||
PG_DATABASE?=metabase | ||
ifndef METABASE_USERNAME | ||
METABASE_USERNAME:[email protected] | ||
endif | ||
ifndef METABASE_PASSWORD | ||
METABASE_PASSWORD:=$(shell uuidgen) | ||
endif | ||
ifndef METABASE_URL | ||
METABASE_URL:=http://localhost:3000/api | ||
endif | ||
|
||
ifndef PG_HOST | ||
PG_HOST:=terraform-metabase-pg | ||
endif | ||
ifndef PG_USER | ||
PG_USER:=metabase | ||
endif | ||
ifndef PG_PASSWORD | ||
PG_PASSWORD:=$(shell uuidgen) | ||
endif | ||
ifndef PG_DATABASE | ||
PG_DATABASE:=metabase | ||
endif | ||
|
||
MBTF_FOLDER:=cmd/mbtf | ||
|
||
|