Fix GHA Yaml #11
Workflow file for this run
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
name: test | |
on: | |
pull_request: | |
paths: | |
- provider/** | |
- examples/** | |
- .github/workflows/** | |
env: | |
MZ_HOST: localhost | |
MZ_USER: mz_system | |
MZ_SSLMODE: disable | |
MZ_PORT: 6877 | |
# THIS GITHUB_TOKEN IS A REQUIREMENT TO BE ABLE TO WRITE TO GH RELEASES | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
test: | |
name: acceptance tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21.x | |
- uses: jaxxstorm/[email protected] | |
with: | |
repo: pulumi/pulumictl | |
- run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> $GITHUB_ENV | |
- uses: goreleaser/goreleaser-action@v2 | |
with: | |
version: latest | |
args: -p 3 release --rm-dist | |
- run: make build_python | |
- run: docker-compose -f examples/docker-compose.yml up -d --build | |
- run: make test | |
- run: docker compose -f examples/docker-compose.yml down |