forked from primefaces/primefaces
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.58 KB
/
nightly.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
45
name: IT
on:
workflow_dispatch:
schedule:
- cron: '0 6 * * *'
env:
SCREENSHOT_DIRECTORY: '/tmp/pf_it/'
permissions:
contents: read
jobs:
nightly:
if: github.repository == 'primefaces/primefaces' && github.ref == 'refs/heads/master'
runs-on: ubuntu-20.04
name: Java ${{ matrix.java }}, ${{ matrix.profile }}
strategy:
fail-fast: false
matrix:
java: [11, 17, 21]
profile: [ 'firefox,theme-saga,myfaces-2.3', 'firefox,csp,theme-saga,myfaces-2.3', 'chrome,theme-saga,myfaces-2.3', 'chrome,theme-saga,myfaces-next-2.3','chrome,csp,theme-nova,myfaces-2.3', 'chrome,csp,theme-nova,mojarra-2.3', 'chrome,client-state-saving,theme-nova,mojarra-2.3' ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Log github.ref
run: echo "${{ github.ref }}"
- name: Build
run: mvn clean install -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 --batch-mode --show-version
- name: Integration Tests
run: mvn -B -V clean install -fprimefaces-integration-tests/pom.xml -Pintegration-tests,headless,${{ matrix.profile }}
- name: Upload failure-screenshots
uses: actions/upload-artifact@v4
if: always()
with:
name: failed_tests_screenshots_java${{ matrix.java }}_${{ matrix.profile }}
if-no-files-found: ignore
path: /tmp/pf_it/