-
Notifications
You must be signed in to change notification settings - Fork 66
29 lines (27 loc) · 1.04 KB
/
actions.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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: setup
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Maven
run: mvn clean install
# - name: Download DesigniteJava
# run: wget "https://www.designite-tools.com/static/download/DJE/DesigniteJava.jar"
# - name: Create 'analysis' folder
# run: mkdir analysis
# - name: Analyze project with DesigniteJava
# run: |
# java -jar DesigniteJava.jar -i . -o analysis/ -f XML
# ls
# curl -X PUT -H "Authorization: Token ${{ secrets.QSCORED_API_KEY }}" -H "repository-link:https://github.com/tushartushar/DesigniteJava" -H "username: [email protected]" -H "Content-Type: mulitpart/form-data" --url "https://qscored.com/api/upload/file.xml?is_open_access=on&version=$GITHUB_RUN_NUMBER&project_name=DesigniteJava" -F "file=@analysis/DesigniteAnalysis.xml"