Skip to content
Snippets Groups Projects
Unverified Commit 72c19e26 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

[E2E] Log output to file (#21360)

parent 6e75652d
No related branches found
No related tags found
No related merge requests found
......@@ -122,10 +122,13 @@ jobs:
run: yarn run test-cypress-no-build --folder ${{ matrix.folder }} --record --key ${{ secrets.CURRENTS_KEY }} --group ${{ matrix.folder }}-${{ matrix.edition }} --ci-build-id "${{ github.run_id }}-${{ github.run_attempt }}"
env:
TERM: xterm
- name: Upload Cypress recording upon failure
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-recording-${{ matrix.folder }}-${{ matrix.edition }}
path: ./cypress
path: |
./cypress
./logs/test.log
if-no-files-found: ignore
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Appenders>
<Console name="STDOUT" target="SYSTEM_OUT">
<File name="TestLogs" fileName="logs/test.log">
<PatternLayout pattern="%d{MM-dd HH:mm:ss} %highlight{%p} %style{%c{2}}{bright} :: %m%n">
<replace regex=":basic-auth \\[.*\\]" replacement=":basic-auth [redacted]"/>
</PatternLayout>
</Console>
</File>
</Appenders>
<Loggers>
......@@ -13,7 +13,7 @@
<Logger name="com.mchange" level="ERROR"/>
<Root level="ERROR">
<AppenderRef ref="STDOUT"/>
<AppenderRef ref="TestLogs"/>
</Root>
</Loggers>
</Configuration>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment