Skip to content

Commit

Permalink
Add back go_test_shim
Browse files Browse the repository at this point in the history
  • Loading branch information
iwahbe committed Aug 25, 2023
1 parent e2179ed commit 0bfff32
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 4 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ jobs:
status: ${{ job.status }}
publish:
name: publish
needs: test
needs:
- test
- go_test_shim
runs-on: pulumi-ubuntu-8core
steps:
- name: Checkout Repo
Expand Down Expand Up @@ -447,6 +449,26 @@ jobs:
- dotnet
- go
- java
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
- uses: actions/setup-go@v4
with:
cache-dependency-path: provider/shim/go.sum
go-version-file: provider/shim/go.mod
- name: go test
run: |
cd provider/shim
go test -v .
timeout-minutes: 60

name: main
on:
push:
Expand Down
24 changes: 23 additions & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ jobs:
status: ${{ job.status }}
publish:
name: publish
needs: test
needs:
- test
- go_test_shim
runs-on: pulumi-ubuntu-8core
steps:
- name: Checkout Repo
Expand Down Expand Up @@ -447,6 +449,26 @@ jobs:
- dotnet
- go
- java
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
- uses: actions/setup-go@v4
with:
cache-dependency-path: provider/shim/go.sum
go-version-file: provider/shim/go.mod
- name: go test
run: |
cd provider/shim
go test -v .
timeout-minutes: 60

name: master
on:
push:
Expand Down
24 changes: 23 additions & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ jobs:
status: ${{ job.status }}
publish:
name: publish
needs: test
needs:
- test
- go_test_shim
runs-on: pulumi-ubuntu-8core
steps:
- name: Checkout Repo
Expand Down Expand Up @@ -398,6 +400,26 @@ jobs:
- dotnet
- go
- java
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
- uses: actions/setup-go@v4
with:
cache-dependency-path: provider/shim/go.sum
go-version-file: provider/shim/go.mod
- name: go test
run: |
cd provider/shim
go test -v .
timeout-minutes: 60

name: prerelease
on:
push:
Expand Down
24 changes: 23 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ jobs:
status: ${{ job.status }}
publish:
name: publish
needs: test
needs:
- test
- go_test_shim
runs-on: pulumi-ubuntu-8core
steps:
- name: Checkout Repo
Expand Down Expand Up @@ -417,6 +419,26 @@ jobs:
- dotnet
- go
- java
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
- uses: actions/setup-go@v4
with:
cache-dependency-path: provider/shim/go.sum
go-version-file: provider/shim/go.mod
- name: go test
run: |
cd provider/shim
go test -v .
timeout-minutes: 60

name: release
on:
push:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/run-acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ jobs:
name: sentinel
needs:
- test
- go_test_shim
runs-on: ubuntu-latest
steps:
- name: Is workflow a success
Expand Down Expand Up @@ -366,6 +367,26 @@ jobs:
- dotnet
- go
- java
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
- uses: actions/setup-go@v4
with:
cache-dependency-path: provider/shim/go.sum
go-version-file: provider/shim/go.mod
- name: go test
run: |
cd provider/shim
go test -v .
timeout-minutes: 60

name: run-acceptance-tests
on:
pull_request:
Expand Down

0 comments on commit 0bfff32

Please sign in to comment.