Skip to content

NXP-32573: added unit tests, refactored code, fixed warning box focus issue & added .npmrc #6

NXP-32573: added unit tests, refactored code, fixed warning box focus issue & added .npmrc

NXP-32573: added unit tests, refactored code, fixed warning box focus issue & added .npmrc #6

Workflow file for this run

name: A11y
on:
pull_request:
branches:
- dev
workflow_call:
inputs:
branch:
description: 'The current branch'
default: dev
type: string
required: false
secrets:
NPM_PACKAGES_TOKEN:
description: 'NPM_PACKAGES_TOKEN'
required: true
PACKAGES_AUTH_USER:
description: 'PACKAGES_AUTH_USER'
required: true
PACKAGES_AUTH_TOKEN:
description: 'PACKAGES_AUTH_TOKEN'
required: true
env:
REFERENCE_BRANCH: dev
NPM_REPOSITORY: https://packages.nuxeo.com/repository/npm-public/
BRANCH_NAME: ${{ github.head_ref || inputs.branch || 'dev' }}
jobs:
a11y:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
with:
ref: ${{ env.BRANCH_NAME }}
- run: git config user.name "nuxeo-webui-jx-bot" && git config user.email "[email protected]"
- uses: actions/setup-node@v3
with:
registry-url: ${{ env.NPM_REPOSITORY }}
node-version: 18
scope: '@nuxeo'
- name: Install Admin Console ui
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGES_TOKEN }}
run: |
npm install
pushd packages/nuxeo-admin-console-ui-ftest
npm install
popd
pushd packages/nuxeo-designer-catalog
npm install
popd
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
- name: 'Update settings.xml with server configuration'
run: |
echo '<settings>
<servers>
<server>
<id>maven-internal</id>
<username>${{ secrets.PACKAGES_AUTH_USER }}</username>
<password>${{ secrets.PACKAGES_AUTH_TOKEN }}</password>
</server>
</servers>
</settings>' > ~/.m2/settings.xml
- name: Web UI build
run: mvn -B -ntp install
- name: A11y checks
run: mvn -B -ntp -f plugin/a11y install