generated from pulumi/pulumi-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup ginkgo and testcontainers (#4)
* Add test step * The test suite * More docker stuff * Install more tools * Try updating the action * Unshallow clone for tags * Well I gotta make the provisioner duh * God dammit * Am I dumb?
- Loading branch information
1 parent
08d422b
commit 7c956f4
Showing
11 changed files
with
350 additions
and
34 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,2 @@ | ||
* | ||
!bin/ |
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,39 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:recommended" | ||
], | ||
"automerge": true, | ||
"customManagers": [ | ||
{ | ||
"customType": "regex", | ||
"depNameTemplate": "dprint/dprint", | ||
"datasourceTemplate": "github-releases", | ||
"fileMatch": [ | ||
".*\\/.*\\.ya?ml" | ||
], | ||
"matchStrings": [ | ||
"dprint-version: (?<currentValue>.*)" | ||
] | ||
}, | ||
{ | ||
"customType": "regex", | ||
"depNameTemplate": "pulumi/pulumi", | ||
"datasourceTemplate": "github-releases", | ||
"fileMatch": [ | ||
"\\.versions\\/pulumi" | ||
], | ||
"matchStrings": [ | ||
"(?<currentValue>\\d+\\.\\d+\\.\\d+)" | ||
] | ||
} | ||
], | ||
"packageRules": [ | ||
{ | ||
"groupName": "pulumi", | ||
"matchDepNames": [ | ||
"pulumi/pulumi$" | ||
] | ||
} | ||
] | ||
} |
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 |
---|---|---|
|
@@ -46,17 +46,70 @@ jobs: | |
- name: Make | ||
run: make provisioner | ||
|
||
- name: Upload binary | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: provisioner | ||
path: bin/provisioner | ||
|
||
provider: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Unshallow clone for tags | ||
run: git fetch --prune --unshallow --tags | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: provider/go.mod | ||
cache-dependency-path: provider/go.sum | ||
|
||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: pulumi/pulumictl | ||
|
||
- name: Install Pulumi | ||
uses: pulumi/actions@v5 | ||
with: | ||
pulumi-version-file: .versions/pulumi | ||
|
||
- name: Make | ||
run: make provider | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
needs: [provisioner, provider] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: provider/go.mod | ||
cache-dependency-path: provider/go.sum | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Download provisioner | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: provisioner | ||
path: bin | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
push: false | ||
cache-from: type=gha | ||
cache-to: type=gha | ||
context: . | ||
file: tests/Dockerfile | ||
|
||
- name: Test | ||
run: make test_provider |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
3.127.0 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM ubuntu:noble-20240605 | ||
|
||
WORKDIR /app | ||
COPY bin/provisioner . |
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
Oops, something went wrong.