Skip to content

Commit

Permalink
WEBUI-727: add build pr check
Browse files Browse the repository at this point in the history
  • Loading branch information
richardsd committed Mar 30, 2022
1 parent ffd4fb1 commit a649771
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yaml
@@ -0,0 +1,43 @@
name: Build

on:
push:
branches:
- 10.10
pull_request:
branches:
- 10.10

env:
HF_VERSION: 56

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'

- 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 nuxeo-web-ui-itests SNAPSHOT version with sed
run: |
grep -rl '10.10-HF[0-9]\{2\}-SNAPSHOT' . --exclude-dir={.git,node_modules,bower_components} --include=pom.xml | xargs sed -i 's/10.10-HF[0-9]\{2\}-SNAPSHOT/10.10-HF${{ env.HF_VERSION }}/g'
- name: Build
run: mvn install -ntp

0 comments on commit a649771

Please sign in to comment.