-
Notifications
You must be signed in to change notification settings - Fork 61
45 lines (45 loc) · 1.22 KB
/
acceptance-tests.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: acceptance-tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
acceptance-tests:
strategy:
fail-fast: false
matrix:
image_tag: [lts-community, lts-developer, lts-enterprise, latest, developer, enterprise]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: build and vet the provider
run: make
env:
GO111MODULE: on
- name: Setup terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_wrapper: false
- name: run acceptance tests
run: |
go test -race -coverprofile=coverage.txt -covermode=atomic ./...
env:
TF_ACC: 1
GO111MODULE: on
SONAR_HOST: http://127.0.0.1:9000
SONAR_USER: admin
SONAR_PASS: admin
- name: Run code coverage
if: ${{ github.ref == 'refs/heads/master' && matrix.image_tag == 'enterprise'}}
uses: codecov/codecov-action@v2
services:
sonarqube:
image: sonarqube:${{ matrix.image_tag }}
ports:
- 9000:9000