forked from konveyor/java-analyzer-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (66 loc) · 1.95 KB
/
integration-tests.yml
File metadata and controls
79 lines (66 loc) · 1.95 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Phase 2 Integration Tests
on:
push:
branches: [ main, maven-index ]
pull_request:
branches: [ main ]
jobs:
unit-tests:
name: Unit Tests (Phase 1)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Run unit tests
run: mvn clean integration-test
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: unit-test-results
path: |
**/target/surefire-reports/*.xml
**/target/surefire-reports/*.txt
jdtls-integration-tests:
name: JDT.LS Integration Tests (Phase 2)
runs-on: ubuntu-latest
needs: unit-tests
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23.9'
- name: Install Podman
run: |
sudo apt-get update
sudo apt-get -y install podman
- name: Verify Podman installation
run: |
podman --version
podman info
- name: Build JDT.LS container image with Podman
run: |
podman build -t jdtls-analyzer:test .
- name: Run Phase 2 integration tests in container
run: |
podman run --rm \
-v "$(pwd)/java-analyzer-bundle.test:/tests:Z" \
-e WORKSPACE_DIR=/tests/projects \
-e JDTLS_PATH=/jdtls \
--workdir /tests/integration \
--entrypoint /bin/sh \
jdtls-analyzer:test \
-c "microdnf install -y golang && cd /tests/integration && go mod download && go test -v"
timeout-minutes: 15