Skip to content

Commit

Permalink
test catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshkumar1019 committed Jul 27, 2023
1 parent c57e044 commit 7b1ff6e
Showing 1 changed file with 80 additions and 1 deletion.
81 changes: 80 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ on:

env:
BRANCH_NAME: ${{ github.head_ref || inputs.branch || 'maintenance-3.0.x' }}

ARTIFACT_ID: view-designer-catalog
GROUP_ID: org.nuxeo.web.ui.studio

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ env.BRANCH_NAME }}

- run: git config --global user.name "nuxeo-webui-jx-bot" && git config --global user.email "[email protected]"

- uses: actions/setup-node@v3
with:
Expand All @@ -40,3 +44,78 @@ jobs:

- name: Lint
run: npm run lint

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

- name: 'Update settings.xml with server configuration'
run: |
echo '<settings>
<mirrors>
<mirror>
<id>nos-team</id>
<mirrorOf>external:*</mirrorOf>
<url>https://nexus-jx.nos.build.nuxeo.com/repository/maven-group/</url>
</mirror>
</mirrors>
<servers>
<server>
<id>nos-team</id>
<username>nuxeo-webui-jx-bot</username>
<password>${{ secrets.WEBUI_JX_BOT_GITHUB_ACTIONS_TOKEN }}</password>
</server>
<server>
<id>maven-internal</id>
<username>${{ secrets.PACKAGES_AUTH_USER }}</username>
<password>${{ secrets.PACKAGES_AUTH_TOKEN }}</password>
</server>
<server>
<id>maven-public-releases</id>
<username>${{ secrets.PACKAGES_AUTH_USER }}</username>
<password>${{ secrets.PACKAGES_AUTH_TOKEN }}</password>
</server>
<server>
<id>maven-public-snapshots</id>
<username>${{ secrets.PACKAGES_AUTH_USER }}</username>
<password>${{ secrets.PACKAGES_AUTH_TOKEN }}</password>
</server>
</servers>
</settings>' > ~/.m2/settings.xml
- name: Setup parameters (release)
if: github.event_name == 'release'
working-directory: packages/nuxeo-designer-catalog
run: |
echo "BRANCH_NAME=maintenance-3.0.x" >> $GITHUB_ENV
echo "TARGET_PLATFORM=11.3" >> $GITHUB_ENV
- name: Setup parameters (workflow_dispatch)
if: github.event_name == 'workflow_dispatch'
run: |
echo "BRANCH_NAME=maintenance-3.0.x" >> $GITHUB_ENV
echo "TARGET_PLATFORM=11.3" >> $GITHUB_ENV
- name: Install dependencies
working-directory: packages/nuxeo-designer-catalog
run: |
npm install
npm install -g gulp
- name: Generate catalog
working-directory: packages/nuxeo-designer-catalog
run: |
gulp catalog --tp 11.3 --webui-branch maintenance-3.0.x
gulp hints --tp 11.3
- name: Bundle the catalog
run: |
pushd packages/nuxeo-designer-catalog/data/applications/nuxeo/11.3
CATALOG_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout -f nuxeo-web-ui/pom.xml)
echo "CATALOG_VERSION=11.3" >> $GITHUB_ENV
CATALOG_NAME=$ARTIFACT_ID-11.3.zip
echo "CATALOG_NAME=$CATALOG_NAME" >> $GITHUB_ENV
zip -q -r $CATALOG_NAME nuxeo-web-ui data hints catalog.json
popd

0 comments on commit 7b1ff6e

Please sign in to comment.