Skip to content

Add conditional logging steps in build workflow #16

Add conditional logging steps in build workflow

Add conditional logging steps in build workflow #16

Workflow file for this run

name: build
on:
workflow_dispatch:
push:
schedule:
- cron: '0 1 * * 6' # weekly check that it still works
env:
BROWSER_STATE: Headless
jobs:
compile-and-test:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- name: Download repository
uses: actions/checkout@v5
# https://github.com/actions/setup-java
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 21
- name: where
run: echo ${{ github.workspace }}
- name: what there
working-directory: ${{ github.workspace }}
run: ls -la
- name: Test with Maven
run: mvn -Dwebdriver.chrome.logfile=${{ github.workspace }}/chromedriver.log -Dwebdriver.chrome.verboseLogging=true test
- name: what fin
if: always()
working-directory: ${{ github.workspace }}
run: ls -la
- name: Show logs
if: always()
run: |
cat ${{ github.workspace }}/chromedriver.log