File tree Expand file tree Collapse file tree 2 files changed +41
-42
lines changed
Expand file tree Collapse file tree 2 files changed +41
-42
lines changed Original file line number Diff line number Diff line change 1+ name : Tests Klass Forvaltning
2+ run-name : " Build, run tests, package and deploy"
3+ permissions :
4+ contents : read
5+ packages : read
6+
7+ on :
8+ push :
9+ branches :
10+ - main
11+ paths :
12+ - klass-forvaltning
13+ - .github/workflows/tests-klass-forvaltning.yml
14+ pull_request :
15+ paths :
16+ - klass-forvaltning
17+ - .github/workflows/tests-klass-forvaltning.yml
18+
19+ jobs :
20+ build-klass-forvaltning :
21+ runs-on : ubuntu-latest
22+ permissions :
23+ contents : read
24+ packages : read
25+ steps :
26+ - uses : actions/checkout@v6
27+ - name : Set up JDK 1.8
28+ uses : actions/setup-java@v4
29+ with :
30+ distribution : ' zulu'
31+ java-version : ' 8'
32+ cache : maven
33+
34+ # Build only klass-forvaltning with JDK 1.8
35+ - name : Build and test Klass Forvaltning
36+ working-directory : klass-forvaltning
37+ run : mvn --batch-mode --update-snapshots package -Djava.version=1.8 -am
38+ env :
39+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1111 pull_request :
1212 paths-ignore :
1313 - ' **.md'
14+ - klass-forvaltning
15+ - klass-solr
1416
1517jobs :
1618 check-code-format :
4951 run : mvn --batch-mode sonar:sonar
5052 env :
5153 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
52-
53- build-klass-forvaltning :
54- runs-on : ubuntu-latest
55- permissions :
56- contents : read
57- packages : read
58- steps :
59- - uses : actions/checkout@v6
60- - name : Set up JDK 1.8
61- uses : actions/setup-java@v4
62- with :
63- distribution : ' zulu'
64- java-version : ' 8'
65- cache : maven
66-
67- # Build only klass-forvaltning with JDK 1.8
68- - name : Build and test Klass Forvaltning
69- working-directory : klass-forvaltning
70- run : mvn --batch-mode --update-snapshots package -Djava.version=1.8 -am
71- env :
72- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
73-
74- deploy :
75- runs-on : ubuntu-latest
76- needs : build
77- if : github.event_name != 'pull_request'
78- permissions :
79- contents : read
80- packages : write
81- steps :
82- - uses : actions/checkout@v6
83- - name : Set up JDK 17
84- uses : actions/setup-java@v4
85- with :
86- distribution : ' temurin'
87- java-version : ' 17'
88- cache : maven
89-
90- - name : Publish to GitHub Packages
91- run : mvn --batch-mode deploy -DskipTests
92- env :
93- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments