Add conditional logging steps in build workflow #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |