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: test commit #81

Closed
wants to merge 90 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
8a77024
refactor: drop Vaadin 8 and refactor project structure
mcollovati Dec 24, 2023
87e1427
chore: add validation workflow
mcollovati Dec 24, 2023
a03bed0
test: test commit
mcollovati Dec 24, 2023
2138ac1
set Java version
mcollovati Dec 24, 2023
976616b
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 24, 2023
807cf75
testbench and chrome version
mcollovati Dec 24, 2023
52a6fd5
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 24, 2023
3a0fc7b
fix workflow
mcollovati Dec 24, 2023
735e443
use offline key
mcollovati Dec 24, 2023
6fbc6e9
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 24, 2023
6aed2c8
save build
mcollovati Dec 24, 2023
0f3b5c8
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 24, 2023
5758193
fix workflow
mcollovati Dec 24, 2023
4c8834c
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 24, 2023
23e1d70
updated readme
mcollovati Dec 24, 2023
f20d4ba
update readme
mcollovati Dec 24, 2023
8e19b62
try with forknode
mcollovati Dec 24, 2023
ac14fd6
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 24, 2023
27c1815
change failsafe config
mcollovati Dec 24, 2023
9a835d6
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 24, 2023
e77cab6
split it tests
mcollovati Dec 26, 2023
e90f168
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
43a91f6
fix workflow
mcollovati Dec 26, 2023
42ce318
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
55e6c19
try thread dump
mcollovati Dec 26, 2023
5266fd5
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
7f91fd6
fix logging
mcollovati Dec 26, 2023
c733ba0
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
813cd65
reduce timeout
mcollovati Dec 26, 2023
3142a64
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
f6b8b3d
fixes
mcollovati Dec 26, 2023
05caa38
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
66354d2
fixes
mcollovati Dec 26, 2023
da4e3f4
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
9fa7324
fix vertx-maven-plugin config
mcollovati Dec 26, 2023
da9c6f2
fixes
mcollovati Dec 26, 2023
a74cf1e
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
5962c20
fixes
mcollovati Dec 26, 2023
b562401
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
3b6ce37
fixes
mcollovati Dec 26, 2023
28a8fba
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
81f70ba
fixes
mcollovati Dec 26, 2023
f9188b4
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
d0bce1c
fixes
mcollovati Dec 26, 2023
e255b01
push npm files
mcollovati Dec 26, 2023
a58d34f
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
f495d87
fixes
mcollovati Dec 26, 2023
321b782
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
cc82576
fixes
mcollovati Dec 26, 2023
7e6d37d
fixes
mcollovati Dec 26, 2023
8aa3928
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
b366212
fixes
mcollovati Dec 26, 2023
f726eba
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
8bd007c
fixes
mcollovati Dec 26, 2023
d8c2e99
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
f19246b
other npm files
mcollovati Dec 26, 2023
e7e45b5
deploy snapshots
mcollovati Dec 26, 2023
2391404
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
ddb5e87
test deploy
mcollovati Dec 26, 2023
b3774df
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
33cc9b9
test deploy
mcollovati Dec 26, 2023
624771a
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
9110a5f
remove snapshot deploy
mcollovati Dec 26, 2023
8eea457
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
4167b51
fix timeout
mcollovati Dec 26, 2023
684ae5c
snapshot deploy workflow
mcollovati Dec 26, 2023
815a146
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
717747d
fix
mcollovati Dec 26, 2023
cfb0ab6
deploy on push
mcollovati Dec 26, 2023
97ccd04
deploy on push
mcollovati Dec 26, 2023
4ac99c8
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
18b20c8
fix workflow
mcollovati Dec 26, 2023
ae464f4
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
7560da0
fix workflow
mcollovati Dec 26, 2023
68c0ed7
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
3739e77
fix workflow
mcollovati Dec 26, 2023
137c5e6
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
e967c67
fix workflow
mcollovati Dec 26, 2023
4dec4c9
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 26, 2023
6d4d1da
deploy on repsy
mcollovati Dec 27, 2023
7974c6b
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 27, 2023
164540e
deploy on repsy
mcollovati Dec 27, 2023
8fe8cc7
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 27, 2023
1238f25
username
mcollovati Dec 27, 2023
1c4fb34
username
mcollovati Dec 27, 2023
95d2e13
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 27, 2023
95c2bbe
fix credentials
mcollovati Dec 27, 2023
4250410
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 27, 2023
3b1511c
fix
mcollovati Dec 27, 2023
4f2423a
Merge branch 'refactor/simplify-project-structure' into test/validati…
mcollovati Dec 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
File renamed without changes.
13 changes: 6 additions & 7 deletions .github/workflows/deploy-classifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,18 @@ jobs:
with: # running setup-java again overwrites the settings.xml
distribution: 'temurin'
java-version: '11'
server-id: github-vertx-vaadin # Value of the distributionManagement/repository/id field of the pom.xml
#server-username: mcollovati # env variable for username in deploy
#server-password: ${{ secrets.GH_PKG_DEPLOY_TOKEN }} # env variable for token in deploy
server-id: repsy-vertx-vaadin
server-username: REPSY_USERNAME
server-password: REPSY_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
- name: Deploy classifiers
run: |
./mvnw -N -ntp install
PRJ_VERSION=$(./mvnw -pl :vaadin-flow-sockjs help:evaluate -q -Dexpression='project.version' -DforceStdout)
KIND=$( [[ "${PRJ_VERSION}" =~ "-SNAPSHOT"$ ]] && echo "snapshot" || echo "release" )
DEPLOY_OPTS="-Ddistribution.id=github-vertx-vaadin -Dvertx-vaadin.release.gpg" ./tools/build_flow_widgetsets.sh deploy ${KIND}
DEPLOY_OPTS="-Ddistribution.id=repsy-vertx-vaadin -Dvertx-vaadin.release.gpg" ./tools/build_flow_widgetsets.sh deploy ${KIND}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JFROG_USERNAME: mcollovati@gmail.com
JFROG_TOKEN: ${{ secrets.JFROG_TOKEN }}
REPSY_USERNAME: ${{ secrets.REPSY_USERNAME }}
REPSY_PASSWORD: ${{ secrets.REPSY_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
33 changes: 33 additions & 0 deletions .github/workflows/deploy-snapshots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy snapshots

on:
push:
branches:
- development

jobs:
deploy-snaphost:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
server-id: github-vertx-vaadin
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Deploy classifiers
run: |
mvn -V -e -B -ntp -DskipVertxRun=true -Ddistribution.id=github-vertx-vaadin -Dvertx-vaadin.release.gpg deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
323 changes: 323 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,323 @@
name: vertx-vaadin validation
on:
push:
branches: [development]
workflow_dispatch:
pull_request_target:
types: [opened, synchronize, reopened, edited]
permissions:
contents: read
concurrency:
group: ${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
env:
JAVA_VERSION: 11
jobs:
check-permissions:
name: Check User Permissions
runs-on: ubuntu-latest
steps:
- run: echo "Concurrency Group = ${{ github.head_ref || github.ref_name }}"
- uses: actions-cool/check-user-permission@main
id: checkUser
with:
username: ${{github.triggering_actor}}
require: 'write'
- name: Fail on workflow triggered by external contributor
if: ${{ steps.checkUser.outputs.require-result != 'true' && github.actor != 'dependabot[bot]' && github.actor != 'vertx-vaadin-bot[bot]' }}
run: |
echo "🚫 **${{ github.actor }}** is an external contributor, a **${{ github.repository }}** team member has to review this changes and re-run this build" \
| tee -a $GITHUB_STEP_SUMMARY && exit 1
changes:
name: Compute changes
needs: [check-permissions]
runs-on: ubuntu-latest
outputs:
validation-required: ${{ steps.filter.outputs.validate }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
validate:
- '!(README.md|LICENSE|.gitignore|tools/**)'
build:
name: Build
needs: [changes]
if: ${{ needs.changes.outputs.validation-required == 'true' }}
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'temurin'
cache: maven
- uses: browser-actions/setup-chrome@latest
id: setup-chrome
if: ${{ !vars.QH_DISABLE_CHROME_INSTALL }}
with:
chrome-version: stable
- name: Build
run: |
set -x -e -o pipefail
VERTX_VAADIN_VERSION=$(mvn -N -ntp -q help:evaluate -Dexpression=project.version -DforceStdout)
echo "VERTX_VAADIN_VERSION=${VERTX_VAADIN_VERSION}" >> "$GITHUB_ENV"
mvn -V -e -B -ntp -DskipTests -DskipVertxRun=true install -Pflow-ui-tests
- name: Save workspace
run: |
tar cf workspace.tar -C ~/ $(cd ~/ && echo .m2/repository/com/github/mcollovati/vertx/**/$VERTX_VAADIN_VERSION)
tar rf workspace.tar $(find . -d -name target)
- uses: actions/upload-artifact@v3
with:
name: saved-workspace
path: workspace.tar
tests:
name: Tests
needs: [build]
if: ${{needs.changes.outputs.validation-required == 'true'}}
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'temurin'
cache: maven
- uses: browser-actions/setup-chrome@latest
id: setup-chrome
if: ${{ !vars.QH_DISABLE_CHROME_INSTALL }}
with:
chrome-version: stable
- uses: actions/download-artifact@v3
if: ${{ github.run_attempt == 1 }}
with:
name: saved-workspace
- name: Restore Workspace
if: ${{ github.run_attempt == 1 }}
run: |
set -x
tar xf workspace.tar
tar cf - .m2 | (cd ~ && tar xf -)
- name: Build
if: ${{ github.run_attempt > 1 }}
run: |
set -x -e -o pipefail
mvn -V -e -B -ntp -DskipTests -DskipVertxRun=true -Dmaven.javadoc.skip=false install -Pflow-ui-tests
- name: Test
env:
VAADIN_OFFLINE_KEY: ${{ secrets.VAADIN_OFFLINE_KEY }}
run: |
set -x -e -o pipefail
mvn -V -e -B -ntp verify -Dmaven.javadoc.skip=false -DtrimStackTrace=false
- name: Package test output files
if: ${{ failure() || success() }}
run: find . -name surefire-reports -o -name failsafe-reports | tar -czf tests-report-main.tgz -T -
- uses: actions/upload-artifact@v3
if: ${{ failure() || success() }}
with:
name: tests-output
path: tests-report-*.tgz
it-tests-1:
name: UI tests 1
needs: [build]
if: ${{needs.changes.outputs.validation-required == 'true'}}
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'temurin'
cache: maven
- uses: browser-actions/setup-chrome@latest
id: setup-chrome
if: ${{ !vars.QH_DISABLE_CHROME_INSTALL }}
with:
chrome-version: stable
- name: Set Chrome Version
run: |
CHROME_VERSION=$(google-chrome --version | sed 's/^Google Chrome //' | cut -d. -f1)
echo "CHROME_VERSION=${CHROME_VERSION}" >> "$GITHUB_ENV"
- uses: actions/download-artifact@v3
if: ${{ github.run_attempt == 1 }}
with:
name: saved-workspace
- name: Restore Workspace
if: ${{ github.run_attempt == 1 }}
run: |
set -x
tar xf workspace.tar
tar cf - .m2 | (cd ~ && tar xf -)
- name: Build
if: ${{ github.run_attempt > 1 }}
run: |
set -x -e -o pipefail
mvn -V -e -B -ntp -DskipTests -DskipVertxRun=true -Dmaven.javadoc.skip=false install -Pflow-ui-tests
- name: UI Test
env:
VAADIN_OFFLINE_KEY: ${{ secrets.VAADIN_OFFLINE_KEY }}
run: |
set -x -e -o pipefail
cd vertx-vaadin-tests
rm -rf frontend/generated
mvn -V -e -B -ntp verify -Dmaven.javadoc.skip=false -pl=:vertx-vaadin-test-root-context -DtrimStackTrace=false \
-Dwebdriver.chrome.driver=$(which chromedriver) \
-Duitest.chrome-version=$CHROME_VERSION
- name: Package test output files
if: ${{ failure() || success() }}
run: find . -name surefire-reports -o -name failsafe-reports -o -name verticle.log | tar -czf tests-report-it-1.tgz -T -
- uses: actions/upload-artifact@v3
if: ${{ failure() || success() }}
with:
name: tests-output
path: tests-report-*.tgz
it-tests-2:
name: UI tests 2
needs: [build]
if: ${{needs.changes.outputs.validation-required == 'true' }}
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'temurin'
cache: maven
- uses: browser-actions/setup-chrome@latest
id: setup-chrome
if: ${{ !vars.QH_DISABLE_CHROME_INSTALL }}
with:
chrome-version: stable
- uses: actions/download-artifact@v3
if: ${{ github.run_attempt == 1 }}
with:
name: saved-workspace
- name: Restore Workspace
if: ${{ github.run_attempt == 1 }}
run: |
set -x
tar xf workspace.tar
tar cf - .m2 | (cd ~ && tar xf -)
- name: Build
if: ${{ github.run_attempt > 1 }}
run: |
set -x -e -o pipefail
mvn -V -e -B -ntp -DskipTests -Dmaven.javadoc.skip=false install -Pflow-ui-tests
- name: UI Test
env:
VAADIN_OFFLINE_KEY: ${{ secrets.VAADIN_OFFLINE_KEY }}
run: |
set -x -e -o pipefail
cd vertx-vaadin-tests/
mvn -V -e -B -ntp verify -DtrimStackTrace=false -pl=-:vertx-vaadin-test-root-context -Dwebdriver.chrome.driver=$(which chromedriver)
- name: Package test output files
if: ${{ failure() || success() }}
run: find . -name surefire-reports -o -name failsafe-reports -o -name verticle.log | tar -czf tests-report-it-2.tgz -T -
- uses: actions/upload-artifact@v3
if: ${{ failure() || success() }}
with:
name: tests-output
path: tests-report-*.tgz
test-results:
permissions:
issues: read
checks: write
pull-requests: write
if: ${{ always() }}
needs: [changes, tests, it-tests-1, it-tests-2]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/download-artifact@v3
if: ${{ always() && needs.changes.outputs.validation-required == 'true' }}
with:
name: tests-output
- name: Extract downloaded files
if: ${{ always() && needs.changes.outputs.validation-required == 'true' }}
run: for i in *.tgz; do tar xvf $i; done
- name: Publish Unit Test Results
if: ${{ always() && needs.changes.outputs.validation-required == 'true' }}
uses: EnricoMi/publish-unit-test-result-action@v2
with:
junit_files: "**/target/*-reports/TEST*.xml"
- name: Set Failure Status
if: ${{ always() && needs.changes.outputs.validation-required == 'true' && (needs.tests.result != 'success' || needs.it-tests-1.result != 'success' || needs.it-tests-2.result != 'success') }}
run: |
echo "🚫 THERE ARE TEST MODULES WITH FAILURES or BEEN CANCELLED" | tee -a $GITHUB_STEP_SUMMARY
exit 1
- name: Set validation skipped status
if: ${{ always() && needs.changes.outputs.validation-required == 'false' }}
run: |
echo "✅ Pull request only contains changes on files ignored by validation workflow" | tee -a $GITHUB_STEP_SUMMARY && exit 0
deploy-snapshots:
runs-on: ubuntu-latest
needs: [test-results]
permissions:
contents: read
packages: write
#if: ${{ github.event_name == 'push' && github.ref_protected }}
if: ${{ success() }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
server-id: repsy-vertx-vaadin-snapshots
server-username: REPSY_USERNAME
server-password: REPSY_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- uses: actions/download-artifact@v3
if: ${{ github.run_attempt == 1 }}
with:
name: saved-workspace
- name: Restore Workspace
if: ${{ github.run_attempt == 1 }}
run: |
set -x
tar xf workspace.tar
tar cf - .m2 | (cd ~ && tar xf -)
- name: Build
if: ${{ github.run_attempt > 1 }}
run: |
set -x -e -o pipefail
mvn -V -e -B -ntp -DskipTests install
- name: Deploy classifiers
run: |
mvn -V -e -B -ntp -DskipVertxRun=true -DskipTests -Dvertx-vaadin.release=snapshot -Dvertx-vaadin.release.gpg deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPSY_USERNAME: ${{ secrets.REPSY_USERNAME }}
REPSY_PASSWORD: ${{ secrets.REPSY_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Loading
Loading