File tree Expand file tree Collapse file tree 3 files changed +53
-33
lines changed
Expand file tree Collapse file tree 3 files changed +53
-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+ runs-on : ubuntu-24.04
13+
14+ permissions :
15+ packages : write
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Set up Java
20+ uses : actions/setup-java@v4
21+ with :
22+ java-version : ' 23'
23+ distribution : ' corretto'
24+ cache : maven
25+ - name : Set up Maven GitHub Packages credentials
26+ run : |
27+ mkdir -p ~/.m2
28+ echo "<settings><servers><server><id>github-packages</id><username>${GITHUB_ACTOR}</username><password>${GITHUB_TOKEN}</password></server></servers></settings>" > ~/.m2/settings.xml
29+ env :
30+ GITHUB_ACTOR : ${{ github.actor }}
31+ GITHUB_TOKEN : ${{ github.token }}
32+ - name : Deploy with Maven
33+ 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