-
Notifications
You must be signed in to change notification settings - Fork 20
50 lines (43 loc) · 1.22 KB
/
compile_target.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
48
49
50
name: compile_target
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
# clone the unlogged-sdk project
- name: checkout commit
uses: actions/checkout@v4
# unlogged-sdk project
- name: Set up JDK 19
uses: actions/setup-java@v3
with:
java-version: '19'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Get version
run: |
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
# Testing script
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./test/requirements.txt
- name: Run testing script
run: |
python3 ./test/test_target.py ${{ env.RELEASE_VERSION }}
# report upload
- name: Upload report
uses: actions/upload-artifact@v3
with:
name: test_report
path: test/test_report.txt