-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 983 Bytes
/
ci.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
name: Third-party License Overrides CI
on:
pull_request:
push:
workflow_dispatch:
jobs:
pre_commit:
name: "pre-commit"
runs-on: ubuntu-latest
steps:
- uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v7.0.0
tests:
name: "Tests"
runs-on: ubuntu-latest
needs: [ pre_commit ]
steps:
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v7.0.0
- name: "Compile"
run: |
cd test
javac -d target ./org/alfresco/thirdpartylicense/ValidateProperties.java
- name: "Run tests"
run: |
cd test
echo -e "\n~~~ Unit tests ~~~\n"
java -cp target org.alfresco.thirdpartylicense.ValidateProperties
echo -e "\n~~~ Script E2E tests ~~~\n"
./thirdPartyLicenseCSVCreatorTests/test.sh
echo -e "\n~~~ Plugin E2E tests ~~~\n"
cd pluginE2ETests
mvn clean install