Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #2062

Closed
wants to merge 7 commits into from
Closed

test #2062

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 62 additions & 62 deletions .github/workflows/a11y.yaml
Original file line number Diff line number Diff line change
@@ -1,72 +1,72 @@
name: A11y
# name: A11y

on:
pull_request:
branches:
- maintenance-3.0.x
workflow_call:
inputs:
branch:
description: 'The current branch'
default: maintenance-3.0.x
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
# on:
# pull_request:
# branches:
# - maintenance-3.0.x
# workflow_call:
# inputs:
# branch:
# description: 'The current branch'
# default: maintenance-3.0.x
# 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: maintenance-3.0.x
NPM_REPOSITORY: https://packages.nuxeo.com/repository/npm-public/
BRANCH_NAME: ${{ github.head_ref || inputs.branch || 'maintenance-3.0.x' }}
# env:
# REFERENCE_BRANCH: maintenance-3.0.x
# NPM_REPOSITORY: https://packages.nuxeo.com/repository/npm-public/
# BRANCH_NAME: ${{ github.head_ref || inputs.branch || 'maintenance-3.0.x' }}

jobs:
a11y:
runs-on: [self-hosted, master]
steps:
- uses: actions/checkout@v2
with:
ref: ${{ env.BRANCH_NAME }}
# jobs:
# a11y:
# runs-on: [self-hosted, master]
# 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]"
# - 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: 14
scope: '@nuxeo'
# - uses: actions/setup-node@v3
# with:
# registry-url: ${{ env.NPM_REPOSITORY }}
# node-version: 14
# scope: '@nuxeo'

- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
# - uses: actions/setup-java@v2
# with:
# distribution: 'zulu'
# java-version: '11'

- name: Install google chrome
run: |
wget https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb
apt install -y --allow-downgrades ./google-chrome-stable_114.0.5735.90-1_amd64.deb
# - name: Install google chrome
# run: |
# wget https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb
# apt install -y --allow-downgrades ./google-chrome-stable_114.0.5735.90-1_amd64.deb

- 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: '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: Web UI build
# run: mvn -B -ntp install

- name: A11y checks
run: mvn -B -ntp -f plugin/a11y install
# - name: A11y checks
# run: mvn -B -ntp -f plugin/a11y install
Loading
Loading