-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (54 loc) · 1.44 KB
/
e2e.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Terraform Provider CI
on:
pull_request:
paths-ignore:
- "README.md"
push:
branches:
- main
paths-ignore:
- "README.md"
concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: true
env:
CI: true
COSMO_API_KEY: cosmo_669b576aaadc10ee1ae81d9193425705
COSMO_API_URL: http://localhost:3001
TERRAFORM_VERSION: 1.9.5
COMSO_REF: main
jobs:
build_test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
repository: wundergraph/cosmo
ref: ${{ env.COMSO_REF }}
path: cosmo
- uses: hoverkraft-tech/[email protected]
with:
compose-file: "cosmo/docker-compose.full.yml "
up-flags: "--remove-orphans --detach"
compose-flags: "--project-directory cosmo --profile default"
- run: scripts/setup-fulldemo.sh
working-directory: ./cosmo
- name: setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ env.TERRAFORM_VERSION }}
- uses: actions/[email protected]
with:
go-version-file: "go.mod"
cache: true
- run: go mod download
- name: Run tests
run: make testacc
- name: Build
run: make build
- name: Install
run: make install
- name: Run e2e
run: make e2e