This repository was archived by the owner on Jul 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (53 loc) · 1.47 KB
/
Copy pathchecker.yml
File metadata and controls
55 lines (53 loc) · 1.47 KB
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
name: SWE API CI
on:
push:
branches:
- develop
- master
pull_request:
branches:
- develop
- master
jobs:
ci_check:
runs-on: ubuntu-latest
steps:
- name: Checkout swe-kafka-db
uses: actions/checkout@v2
with:
repository: RedRoundRobin/swe-kafka-db
path: swe-kafka-db
ref: develop
- name: Start databases
run: docker-compose -f swe-kafka-db/kafka/docker-compose.yml up -d
- name: Checkout swe-api
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Run project checkstyle
run: mvn clean validate --file apirest/pom.xml
- name: Run project build
run: mvn clean compile --file apirest/pom.xml
- name: Run project tests
run: mvn clean test --file apirest/pom.xml
- name: Run project SonarCloud
run: mvn clean verify -Dsonar.login=${{ secrets.SONARCLOUD_LOGIN_KEY }} --file apirest/pom.xml -e
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Slack Notification
uses: homoluctus/slatify@v2.0.1
if: failure()
with:
type: ${{ job.status }}
job_name: 'CI Check'
mention: 'here'
mention_if: 'failure'
channel: '#devops_software'
username: 'CI Checker'
url: ${{ secrets.SLACK_SW_WEBHOOK }}
commit: true
token: ${{ secrets.GITHUB_TOKEN }}