-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (42 loc) · 1.21 KB
/
ci-main.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
name: CI - Main
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
java-version: 17
distribution: adopt
- name: Unit Tests
uses: eskatos/[email protected]
with:
arguments: test
- name: Codacy Publish
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_TOKEN }}
javadoc:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
java-version: 17
distribution: adopt
- name: Generate javadoc
uses: eskatos/[email protected]
with:
arguments: globalJavadoc
#- name: Upload javadoc
# uses: sebastianpopp/ftp-action@releases/v2
# with:
# host: ${{ secrets.WEBSPACE_HOST }}
# user: ${{ secrets.WEBSPACE_USER }}
# password: ${{ secrets.WEBSPACE_PASSWORD }}
# localDir: "build/javadoc/"
# remoteDir: "javadoc/"