Merge pull request #217 from Michenux/fix/alm-settings-update-gitlab-… #105
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: acceptance-tests-dce | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
acceptance-tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
env: [.env.dce.lts.yml, .env.dce.yml] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Add hosts to /etc/hosts | |
run: | | |
sudo echo "127.0.0.1 sonarqube.dev.local" | sudo tee -a /etc/hosts | |
- name: Start Sonarqube dce | |
run: docker compose -f docker-compose-dce.yml --env-file ${{ matrix.env }} up -d | |
- 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: | | |
sleep 120 # Testing if sonarqube dce needs more time to start | |
go test -race -coverprofile=coverage.txt -covermode=atomic ./... | |
env: | |
TF_ACC: 1 | |
GO111MODULE: on | |
SONAR_HOST: http://sonarqube.dev.local | |
SONAR_USER: admin | |
SONAR_PASS: admin | |
INSTALLED_VERSION: 9.9 | |
INSTALLED_EDITION: Datacenter |