Skip to content
Open
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
111 changes: 0 additions & 111 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,114 +269,3 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
if: github.ref == 'refs/heads/main'

swtbot:
runs-on: windows-latest
needs:
- java
permissions:
contents: write
checks: write
pull-requests: write
actions: read
steps:
- uses: actions/checkout@v6

- name: Setup Java
uses: eclipse-set/build/.github/actions/setup-java@main

- name: Fetch SET
uses: actions/download-artifact@v7
with:
name: eclipse-set-snapshot-${{github.run_number}}
path: ${{ env.TEST_APPLICATION_DIR }}

- name: Fetch m2 Deploy
# For main or tag build, the m2 packages can be taken directly from github m2package
if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
uses: actions/download-artifact@v7
with:
name: set-m2deploy-${{github.run_number}}
path: ${{ env.DEPLOY_DIR }}

- name: Fetch main csv files
if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/heads/release/') && !startsWith(github.ref, 'refs/tags/')
uses: eclipse-set/build/.github/actions/fetch-main-table-csv-ref@main
with:
repo: ${{ github.repository }}
continue-on-error: true

- name: Cache m2repo
uses: actions/cache@v5
with:
enableCrossOsArchive: true
path: ~/.m2/repository
key: ${{ runner.os }}-m2repo-${{ hashFiles('**/java/bundles/org.eclipse.set.releng.target/org.eclipse.set.releng.target.target', 'pom.xml') }}
restore-keys: ${{ runner.os }}-m2repo-

- name: Run Test
id: test-steps
shell: bash
run: |
m2RepoPath="https://maven.pkg.github.com/eclipse-set/set"
if [[ "${{ github.event_name }}" == "pull_request" || "${{github.ref}}" == refs/heads/release/* ]]; then
m2RepoPath="file://${{ env.DEPLOY_DIR }}"
fi
mvn -T 1.5C -U -B -f java-test/pom.xml clean verify \
--settings ./.github/settings.xml \
-Dskip-test=false \
-Dm2-repo-path="$m2RepoPath" \
-Dapplication-under-test="${{ env.TEST_APPLICATION_DIR }}" \

- name: Upload csv files
if: failure() && steps.test-steps.outcome == 'failure'
uses: actions/upload-artifact@v6
with:
name: table-csv-${{github.run_number}}
path: ${{ github.workspace}}/java/bundles/org.eclipse.set.swtbot/target/classes/diff/**/*.csv
retention-days: 7

table-diff-view:
runs-on: ubuntu-latest
needs: swtbot
if: always() && github.actor_id != 49699333 && !startsWith(github.ref, 'refs/heads/release/') && !startsWith(github.ref, 'refs/tags/')
container: ghcr.io/eclipse-set/table-diff-view:latest
permissions:
contents: write
checks: write
pull-requests: write
actions: read
issues: write
steps:
- name: Get Branchname
shell: bash
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
echo "BRANCH_NAME=${{ github.head_ref }}" >> $GITHUB_ENV
else
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
fi

- name: Fetch table csv
if: needs.swtbot.result == 'failure'
uses: actions/download-artifact@v7
with:
name: table-csv-${{github.run_number}}
path: ${{ env.DIFF_DIR }}

- name: Create diff view
shell: bash
run: |
python -m tablediffview \
--diffDir=${{ env.DIFF_DIR }} \
--branchName=${{ env.BRANCH_NAME }} \
--prNumber=${{github.event.pull_request.number}} \
--runId=${{github.run_id}}

- name: Upload Diff-File
if: needs.swtbot.result == 'failure'
uses: actions/upload-artifact@v6
with:
name: table-diff-files-${{github.run_number}}
path: ${{ env.DIFF_DIR }}/diff-md
retention-days: 5
6 changes: 4 additions & 2 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ jobs:
node-version: 20

- name: Install dependencies
run: cd web/siteplan && npm install
run: npm ci
working-directory: web/siteplan

- name: Eslint
run: cd web/siteplan && npm run lint
run: npm run lint
working-directory: web/siteplan

lint-textviewer:
runs-on: ubuntu-latest
Expand Down
148 changes: 148 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
# This workflow will build the main SET application and publish it to GitHub Packages
name: Test SET

on:
workflow_run:
workflows: ["Build SET"]
types: [completed]
branches:
- '*'
Copy link
Contributor

@TruongQuangSB TruongQuangSB Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mariusheine Did you already test this Workflow on your fork ? I think this workflow should be triggered by "Build SET" workflow. When trigger by "Build SET" completed, then it can't take correct the artifact for test.
Otherweise should this Workflow only execute by main, normal PR and update package.json in siteplan

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TruongQuangSB No I have not tested it by now. I wanted to trigger it only on completed because otherwise the SET build was not successful.


jobs:
swtbot:
runs-on: windows-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
permissions:
contents: write
checks: write
pull-requests: write
actions: read
steps:
- uses: actions/checkout@v6

- name: Setup Java
uses: eclipse-set/build/.github/actions/setup-java@main

- name: Fetch SET
uses: actions/download-artifact@v7
with:
name: eclipse-set-snapshot-${{github.run_number}}
path: ${{ env.TEST_APPLICATION_DIR }}

- name: Fetch m2 Deploy
# For main or tag build, the m2 packages can be taken directly from github m2package
if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
uses: actions/download-artifact@v7
with:
name: set-m2deploy-${{github.run_number}}
path: ${{ env.DEPLOY_DIR }}

- name: Fetch main csv files
if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/heads/release/') && !startsWith(github.ref, 'refs/tags/')
uses: eclipse-set/build/.github/actions/fetch-main-table-csv-ref@main
with:
repo: ${{ github.repository }}
continue-on-error: true

- name: Cache m2repo
uses: actions/cache@v5
with:
enableCrossOsArchive: true
path: ~/.m2/repository
key: ${{ runner.os }}-m2repo-${{ hashFiles('**/java/bundles/org.eclipse.set.releng.target/org.eclipse.set.releng.target.target', 'pom.xml') }}
restore-keys: ${{ runner.os }}-m2repo-

- name: Run Test
id: test-steps
shell: bash
run: |
m2RepoPath="https://maven.pkg.github.com/eclipse-set/set"
if [[ "${{ github.event_name }}" == "pull_request" || "${{github.ref}}" == refs/heads/release/* ]]; then
m2RepoPath="file://${{ env.DEPLOY_DIR }}"
fi
mvn -T 1.5C -U -B -f java-test/pom.xml clean verify \
--settings ./.github/settings.xml \
-Dskip-test=false \
-Dm2-repo-path="$m2RepoPath" \
-Dapplication-under-test="${{ env.TEST_APPLICATION_DIR }}" \

- name: Upload csv files
if: failure() && steps.test-steps.outcome == 'failure'
uses: actions/upload-artifact@v6
with:
name: table-csv-${{github.run_number}}
path: ${{ github.workspace}}/java/bundles/org.eclipse.set.swtbot/target/classes/diff/**/*.csv
retention-days: 7

table-diff-view:
runs-on: ubuntu-latest
needs: swtbot
if: always() && github.actor_id != 49699333 && !startsWith(github.ref, 'refs/heads/release/') && !startsWith(github.ref, 'refs/tags/')
container: ghcr.io/eclipse-set/table-diff-view:latest
permissions:
contents: write
checks: write
pull-requests: write
actions: read
issues: write
steps:
- name: Get Branchname
shell: bash
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
echo "BRANCH_NAME=${{ github.head_ref }}" >> $GITHUB_ENV
else
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
fi

- name: Fetch table csv
if: needs.swtbot.result == 'failure'
uses: actions/download-artifact@v7
with:
name: table-csv-${{github.run_number}}
path: ${{ env.DIFF_DIR }}

- name: Create diff view
shell: bash
run: |
python -m tablediffview \
--diffDir=${{ env.DIFF_DIR }} \
--branchName=${{ env.BRANCH_NAME }} \
--prNumber=${{github.event.pull_request.number}} \
--runId=${{github.run_id}}

- name: Upload Diff-File
if: needs.swtbot.result == 'failure'
uses: actions/upload-artifact@v6
with:
name: table-diff-files-${{github.run_number}}
path: ${{ env.DIFF_DIR }}/diff-md
retention-days: 5

test-siteplan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- uses: actions/setup-node@v6
with:
node-version: 20

- name: Install dependencies
run: npm ci
working-directory: web/siteplan

- name: Install Playwright Browsers
run: npm exec playwright install --with-deps
working-directory: web/siteplan

- name: Run Playwright tests
run: npm run test:e2e
working-directory: web/siteplan

- uses: actions/upload-artifact@v6
if: ${{ !cancelled() }}
with:
name: playwright-report
path: web/siteplan/playwright-report/
retention-days: 1
10 changes: 9 additions & 1 deletion web/siteplan/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@ dist/
public/siteplan.json
public/font
.vscode
.env
.env

# Playwright
node_modules/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/playwright/.auth/
Loading