saucelabs.reporter.url set to point to saucelabs dashboard #216
This file contains 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: main branch deploy and site publishing | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
# TODO ignore changes to *.md files only in root project directories | |
- '**.md' | |
- '.idea/**' | |
- '.*' | |
- '/*/.*' | |
jobs: | |
matrix-build: | |
uses: ./.github/workflows/matrix-build.yml | |
secrets: inherit | |
deploy-site-for-jdk11: | |
name: jdk-11 snapshot deploy and site publishing | |
# ISSUE ChromeDriver/GeckoDriver fail to initialize on Ubuntu | |
# see https://github.com/QA-Automation-Starter/qa-automation/actions/runs/3294884059/jobs/5432863668 | |
# see https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners | |
# and https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md | |
# ISSUE Google Search behaves differently on MacOS causing tests to fail | |
# following these issues, the least worst remedy is to run against a | |
# remote Selenium node, like SauceLabs, hence bypassing the need for | |
# a ChromeDriver/GeckoDriver, and allowing this job to run un Ubuntu. | |
runs-on: ubuntu-latest | |
environment: development | |
outputs: | |
version: ${{ steps.version.outputs.version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: maven | |
settings-path: ${{ github.workspace }} | |
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml | |
server-username: OSSRH_USERNAME | |
server-password: OSSRH_PASSWORD | |
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | |
gpg-passphrase: GPG_PASSPHRASE | |
- name: setup SSH | |
uses: webfactory/ssh-agent@v0.6.0 | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: deploy snapshots and publish site | |
id: deploy | |
shell: bash | |
run: | | |
git config --global core.longpaths true | |
git config --global user.name "Adrian Herscu" | |
git config --global user.email "adrian.herscu@gmail.com" | |
chmod +x mvnw && ./mvnw deploy site site:stage scm-publish:publish-scm \ | |
--threads 1 \ | |
-s $GITHUB_WORKSPACE/settings.xml \ | |
-Pmode-build-full,provider-saucelabs-selenium,testing-tutorials | |
env: | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
SAUCELABS_USER: ${{ secrets.SAUCELABS_USER }} | |
SAUCELABS_PASSWORD: ${{ secrets.SAUCELABS_PASSWORD }} | |
- name: save project version | |
id: version | |
shell: bash | |
run: | | |
echo "version=$(cat target/version.txt)" >> $GITHUB_OUTPUT | |
generate-automation-project: | |
uses: ./.github/workflows/generate-automation-project.yml | |
with: | |
archetype-version: ${{ needs.deploy-site-for-jdk11.outputs.version }} | |
secrets: inherit | |
needs: deploy-site-for-jdk11 |