Skip to content

Bump @wdio/mocha-framework from 8.12.1 to 8.13.13 in /testing #5749

Bump @wdio/mocha-framework from 8.12.1 to 8.13.13 in /testing

Bump @wdio/mocha-framework from 8.12.1 to 8.13.13 in /testing #5749

Workflow file for this run

name: Gradle Build
on:
push:
repository_dispatch:
types: [ lib-admin-ui, xp ]
concurrency: build-${{ github.event.client_payload.ref || github.ref }}
jobs:
publish_vars:
runs-on: ubuntu-latest
outputs:
publish: ${{ steps.publish_vars.outputs.release != 'true' && (env.ACTUAL_GITHUB_REF == 'refs/heads/master' || startsWith(env.ACTUAL_GITHUB_REF, 'refs/heads/7.')) }}
repo: ${{ steps.publish_vars.outputs.repo }}
steps:
- name: Extract actual github.ref
run: echo "ACTUAL_GITHUB_REF=${ACTUAL_REF}" >> $GITHUB_ENV
env:
ACTUAL_REF: ${{ github.event.client_payload.ref || github.ref }}
- uses: actions/checkout@v3
with:
ref: ${{ github.event.client_payload.ref || github.ref }}
- name: Get publishing variables
id: publish_vars
uses: enonic/release-tools/publish-vars@master
env:
PROPERTIES_PATH: './gradle.properties'
build:
runs-on: ubuntu-latest
needs: publish_vars
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.client_payload.ref || github.ref }}
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew build -Pcom.enonic.xp.app.production=true
- run: |
set -ex
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb
- name: Run Selenium Tests
id: selenium
if: github.event.head_commit.message != 'Updated to next SNAPSHOT version'
run: ./gradlew :testing:testUsersApp
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
if: failure()
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: notif-build-tests
SLACK_USERNAME: GitHub Actions
SLACK_TITLE: GitHub Action Failure in the Users app
SLACK_MESSAGE: ${{job.container.id}}
SLACK_ICON: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
SLACK_COLOR: ${{ job.status }}
- uses: actions/upload-artifact@v3
if: always() && steps.selenium.conclusion != 'skipped'
with:
name: ui-test-report
path: |
testing/build/mochawesome-report
- uses: codecov/codecov-action@v3
- name: Publish
if: needs.publish_vars.outputs.publish == 'true'
run: ./gradlew publish -Pcom.enonic.xp.app.production=true -PrepoKey=${{ needs.publish_vars.outputs.repo }} -PrepoUser=${{ secrets.ARTIFACTORY_USERNAME }} -PrepoPassword=${{ secrets.ARTIFACTORY_PASSWORD }}
dispatch:
needs: [publish_vars, build]
strategy:
matrix:
repo: ["enonic/xp-distro" ]
runs-on: ubuntu-latest
if: needs.publish_vars.outputs.publish == 'true'
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: ${{ matrix.repo }}
event-type: app-users
client-payload: >
{"ref": "${{ github.event.client_payload.ref || github.ref }}"}