Consolidate PDE tests: remove redundant PDEServiceTest, merge integra… #25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Deploy Eclipse Update Site | |
| on: | |
| push: | |
| branches: ["servoy"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up Java 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Install and start Xvfb (required for useUIHarness=true on Linux) | |
| run: | | |
| sudo apt-get install -y xvfb | |
| Xvfb :99 -screen 0 1024x768x24 & | |
| echo "DISPLAY=:99" >> $GITHUB_ENV | |
| - name: Build with Tycho | |
| run: mvn --batch-mode --no-transfer-progress clean verify | |
| - name: Upload test logs on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-logs | |
| path: | | |
| **/target/test-workspace/.metadata/.log | |
| **/target/surefire-reports/ | |
| if-no-files-found: ignore | |
| include-hidden-files: true | |
| - name: Prepare Eclipse Update Site | |
| run: | | |
| mkdir -p deploy | |
| cp -r releng/com.github.gradusnikov.eclipse.assistai.repository/target/repository/. deploy/ | |
| cp site/index.html deploy/ | |
| cp site/site.xml deploy/ | |
| cp -r site/web deploy/ || true | |
| # Replace version qualifier placeholder with the actual resolved version | |
| FEATURE_VERSION=$(basename deploy/features/com.github.gradusnikov.eclipse.assistai_*.jar .jar | sed 's/com.github.gradusnikov.eclipse.assistai_//') | |
| sed -i -E "s/[0-9]+\.[0-9]+\.[0-9]+\.qualifier/$FEATURE_VERSION/g" deploy/site.xml | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: 'deploy' | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |