generated from pulumi/pulumi-tf-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (35 loc) · 1.01 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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