Skip to content

Commit 043fae2

Browse files
committed
record screenshots
1 parent 8678023 commit 043fae2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/tomcat-smoke.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
runs-on: ubuntu-22.04
1010
timeout-minutes: 120
1111
env:
12+
TERM: xterm
1213
JAVA_OPTS: "-Dhttp.agent=Sakai -Xms2512m -Xmx2512m -Dsakai.cookieName=SAKAIID -Dsakai.demo=true"
1314
MAVEN_OPTS: "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true -Dmaven.wagon.http.retryHandler.count=2 -Dmaven.wagon.http.pool=true"
1415
TOMCAT_DIR: "${{ github.workspace }}/tomcat"
@@ -53,6 +54,7 @@ jobs:
5354
git clone https://github.com/sakaiproject/nightly-config.git sakai
5455
cp sakai/setenv.sh bin/setenv.sh
5556
cp sakai/cypress.properties sakai/sakai.properties
57+
sed -i '/DEBUG/d' sakai/sakai.properties
5658
cp -f sakai/context.xml conf/context.xml
5759
cp -f sakai/catalina.properties conf/catalina.properties
5860
sed -i 's:<Service name="Catalina">:<Service name="Catalina"><Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="https" secure="true" />:g' conf/server.xml
@@ -102,6 +104,24 @@ jobs:
102104
CYPRESS_BASE_URL: http://localhost:8080
103105
run: npm run test:e2e
104106

107+
- name: Upload Cypress screenshots
108+
if: ${{ failure() }}
109+
uses: actions/upload-artifact@v4
110+
with:
111+
name: cypress-screenshots
112+
path: cypress/screenshots/**
113+
retention-days: 7
114+
if-no-files-found: ignore
115+
116+
- name: Upload Cypress videos
117+
if: ${{ failure() }}
118+
uses: actions/upload-artifact@v4
119+
with:
120+
name: cypress-videos
121+
path: cypress/videos/**
122+
retention-days: 7
123+
if-no-files-found: ignore
124+
105125
- name: Upload Tomcat logs
106126
if: always()
107127
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)