Skip to content

Commit

Permalink
Run shim test in all workflows that test
Browse files Browse the repository at this point in the history
.. and tidy the name etc., up a bit.

Signed-off-by: Michael Bridgen <mbridgen@pulumi.com>
  • Loading branch information
squaremo committed Mar 8, 2023
1 parent ef70781 commit b020f7e
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -454,6 +454,24 @@ jobs:
- 16.x
pythonversion:
- "3.9"


go_test_shim:
if: github.event_name == 'repository_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository
name: Run test of provider shim
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
ref: ${{ env.PR_COMMIT_SHA }}
submodules: true
- name: go test
run: |
cd provider/shim
go test -v .
test:
name: test
needs: build_sdk
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/master.yml
Expand Up @@ -470,6 +470,23 @@ jobs:
- 16.x
pythonversion:
- "3.9"

go_test_shim:
if: github.event_name == 'repository_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository
name: Run test of provider shim
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
ref: ${{ env.PR_COMMIT_SHA }}
submodules: true
- name: go test
run: |
cd provider/shim
go test -v .
test:
name: test
needs: build_sdk
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/nightly-test.yml
Expand Up @@ -202,6 +202,24 @@ jobs:
- 16.x
pythonversion:
- "3.9"


go_test_shim:
if: github.event_name == 'repository_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository
name: Run test of provider shim
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
ref: ${{ env.PR_COMMIT_SHA }}
submodules: true
- name: go test
run: |
cd provider/shim
go test -v .
test:
name: test
needs: build_sdk
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/prerelease.yml
Expand Up @@ -413,6 +413,23 @@ jobs:
- 16.x
pythonversion:
- "3.9"

go_test_shim:
if: github.event_name == 'repository_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository
name: Run test of provider shim
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
ref: ${{ env.PR_COMMIT_SHA }}
submodules: true
- name: go test
run: |
cd provider/shim
go test -v .
test:
name: test
needs: build_sdk
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -440,6 +440,23 @@ jobs:
- name: Add SDK version tag
run: git tag sdk/v$(pulumictl get version --language generic) && git push origin
sdk/v$(pulumictl get version --language generic)

go_test_shim:
if: github.event_name == 'repository_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository
name: Run test of provider shim
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
ref: ${{ env.PR_COMMIT_SHA }}
submodules: true
- name: go test
run: |
cd provider/shim
go test -v .
test:
name: test
needs: build_sdk
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/run-acceptance-tests.yml
Expand Up @@ -241,18 +241,19 @@ jobs:
- name: Is workflow a success
run: echo yes

go_test:
go_test_shim:
if: github.event_name == 'repository_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository
name: Run go tests
name: Run test of provider shim
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
ref: ${{ env.PR_COMMIT_SHA }}
submodules: true
- run: |
- name: go test
run: |
cd provider/shim
go test -v .
Expand Down

0 comments on commit b020f7e

Please sign in to comment.