14
14
fail-fast : false
15
15
matrix :
16
16
os : [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
17
- java-version : [ 11 ]
17
+ java-version : [ 17 ]
18
18
browser : ['googlechromeheadless', 'firefoxheadless', 'edgeheadless']
19
19
include :
20
20
- os : ubuntu-latest
43
43
runs-on : ${{ matrix.os }}
44
44
name : Test on ${{ matrix.os }} with Java ${{ matrix.java-version }} using browser ${{ matrix.browser }}
45
45
steps :
46
- - uses : actions/checkout@v2
46
+ - uses : actions/checkout@v4
47
47
- name : Set up JDK ${{ matrix.java-version }}
48
- uses : actions/setup-java@v2.3.0
48
+ uses : actions/setup-java@v4
49
49
with :
50
50
distribution : zulu
51
51
java-version : ${{ matrix.java-version }}
75
75
run : echo "${{ env.SHA }}"
76
76
77
77
- name : Archive acceptances test results
78
- uses : actions/upload-artifact@v2.2.4
78
+ uses : actions/upload-artifact@v4
79
79
with :
80
80
name : at-results-${{ matrix.browser }}-${{ matrix.os }}-${{ matrix.java-version }}
81
81
path : target/robotframework-reports
91
91
echo "::set-output name=JOB_STATUS::$(python -c "print('${{ job.status }}'.lower())")"
92
92
if : always() && job.status == 'failure'
93
93
94
- - uses : octokit/request-action@7e93b91076fad3920c29d44eb2a6311d929db3dd
94
+ - uses : octokit/request-action@dad4362715b7fb2ddedf9772c8670824af564f0d # v2.4.0
95
95
name : Update status with Github Status API
96
96
id : update_status_pr
97
97
with :
@@ -112,17 +112,20 @@ jobs:
112
112
runs-on : ubuntu-latest
113
113
name : Release package
114
114
steps :
115
- - uses : actions/checkout@v2
115
+ - uses : actions/checkout@v4
116
116
- name : Set up JDK
117
- uses : actions/setup-java@v2.3.0
117
+ uses : actions/setup-java@v4
118
118
with :
119
119
distribution : zulu
120
- java-version : 11
120
+ java-version : 17
121
121
- name : Release Maven package
122
- uses : samuelmeuli/action-maven-publish@201a45a3f311b2ee888f252ba9f4194257545709
123
- with :
124
- gpg_private_key : ${{ secrets.gpg_private_key }}
125
- gpg_passphrase : ${{ secrets.gpg_passphrase }}
126
- nexus_username : ${{ secrets.nexus_username }}
127
- nexus_password : ${{ secrets.nexus_password }}
128
- maven_args : -DskipTests -B -ntp
122
+ run :
123
+ echo $GPG_PRIVATE_KEY > .m2/private-key.txt
124
+ gpg --import --batch .m2/private-key.txt
125
+ rm .m2/private-key.txt
126
+ mvn clean deploy --batch-mode --activate-profiles deploy --settings ${{ github.workspace }}/.m2/settings.xml -DskipTests -B -ntp
127
+ env :
128
+ GPG_PRIVATE_KEY : ${{ secrets.gpg_private_key }}
129
+ GPG_PASSPHRASE : ${{ secrets.gpg_passphrase }}
130
+ NEXUS_USERNAME : ${{ secrets.nexus_username }}
131
+ NEXUS_PASSWORD : ${{ secrets.nexus_password }}
0 commit comments