This repository has been archived by the owner on Jul 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.67 KB
/
spring.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
name: Spring Boot CI Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
verify:
runs-on: ubuntu-latest
name: Running Verify Lifecycle
steps:
- uses: actions/checkout@v2
- name: Set up Java 11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Build Docker-Compose
run: docker-compose build angular
- name: Start Angular on Docker
run: docker-compose run -p 4200:80 -e API_BASE_URL=http://172.17.0.1:8080/api/ -d angular
- name: Prepare Docker for Selenium
run: docker pull aerokube/selenoid:1.10.1 && docker pull selenoid/vnc:firefox_84.0
- name: Verify code executing each default lifecycle phase and IT tests
run: mvn -B clean verify
working-directory: ./air-quality-service
sonarQube:
runs-on: ubuntu-latest
name: SonarQube Code Analysis
steps:
- uses: actions/checkout@v2
- name: Set up Java 11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Build Docker-Compose
run: docker-compose build angular
- name: Start Angular on Docker
run: docker-compose run -p 4200:80 -e API_BASE_URL=http://172.17.0.1:8080/api/ -d angular
- name: Prepare Docker for Selenium
run: docker pull aerokube/selenoid:1.10.1 && docker pull selenoid/vnc:firefox_84.0
- name: Send code to SonarQube server and wait for quality gate
run: mvn -B clean verify sonar:sonar -Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} -Dsonar.login=${{ secrets.SONARQUBE_TOKEN }} -Dsonar.qualitygate.wait=true
working-directory: ./air-quality-service