File tree Expand file tree Collapse file tree 3 files changed +54
-33
lines changed
Expand file tree Collapse file tree 3 files changed +54
-33
lines changed Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ jobs :
8+ tests :
9+ uses : ./.github/workflows/tests.yml
10+
11+ publish :
12+ needs : [tests]
13+
14+ runs-on : ubuntu-24.04
15+
16+ permissions :
17+ packages : write
18+
19+ steps :
20+ - uses : actions/checkout@v4
21+ - name : Set up Java
22+ uses : actions/setup-java@v4
23+ with :
24+ java-version : ' 23'
25+ distribution : ' corretto'
26+ - name : Set up Maven GitHub Packages credentials
27+ run : |
28+ mkdir -p ~/.m2
29+ echo "<settings><servers><server><id>github-packages</id><username>${GITHUB_ACTOR}</username><password>${GITHUB_TOKEN}</password></server></servers></settings>" > ~/.m2/settings.xml
30+ env :
31+ GITHUB_ACTOR : ${{ github.actor }}
32+ GITHUB_TOKEN : ${{ github.token }}
33+ - name : Deploy with Maven
34+ run : mvn deploy
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Java CI
1+ name : Tests
22
3- on : [push, pull_request]
3+ on :
4+ pull_request :
5+ workflow_call :
46
57jobs :
6- build :
7- runs-on : ubuntu-latest
8-
8+ tests :
9+ name : Run tests
10+ strategy :
11+ matrix :
12+ os : [ubuntu-24.04, ubuntu-latest, windows-latest]
13+ runs-on : ${{ matrix.os }}
914 steps :
10- - uses : actions/checkout@v3
11- - name : Set up JDK 11
12- uses : actions/setup-java@v3
15+ # https://github.com/actions/checkout/issues/135#issuecomment-602171132
16+ - name : Set git to use LF
17+ run : |
18+ git config --global core.autocrlf false
19+ git config --global core.eol lf
20+ - uses : actions/checkout@v4
21+ - name : Set up Java
22+ uses : actions/setup-java@v4
1323 with :
14- java-version : ' 11 '
15- distribution : ' adopt '
24+ java-version : ' 23 '
25+ distribution : ' corretto '
1626 cache : maven
1727 - name : Build with Maven
1828 run : mvn --batch-mode test
You can’t perform that action at this time.
0 commit comments