diff --git a/Backend/AnalysisBackendServer/.github/CODEOWNERS b/.github/CODEOWNERS similarity index 100% rename from Backend/AnalysisBackendServer/.github/CODEOWNERS rename to .github/CODEOWNERS diff --git a/Frontend/WebEditor/.github/dependabot.yml b/.github/dependabot.yml similarity index 61% rename from Frontend/WebEditor/.github/dependabot.yml rename to .github/dependabot.yml index 0df07364..c0df54bd 100644 --- a/Frontend/WebEditor/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -15,7 +15,20 @@ updates: - "dependencies" - package-ecosystem: "npm" target-branch: "main" - directory: "/" + directory: "/Frontend/WebEditor" + schedule: + interval: "weekly" + day: "wednesday" + time: "11:00" + timezone: "Europe/Berlin" + commit-message: + prefix: "Dependency" + include: "scope" + labels: + - "dependencies" + - package-ecosystem: "maven" + target-branch: "main" + directory: "/Backend/AnalysisBackendServer" schedule: interval: "weekly" day: "wednesday" @@ -26,3 +39,4 @@ updates: include: "scope" labels: - "dependencies" + - "minor" diff --git a/Backend/AnalysisBackendServer/.github/workflows/main.yml b/.github/workflows/backendUpdatesite.yml similarity index 91% rename from Backend/AnalysisBackendServer/.github/workflows/main.yml rename to .github/workflows/backendUpdatesite.yml index 277ed92c..939b2033 100644 --- a/Backend/AnalysisBackendServer/.github/workflows/main.yml +++ b/.github/workflows/backendUpdatesite.yml @@ -26,11 +26,13 @@ jobs: with: maven-version: 3.9.6 - name: Build and Verify + working-directory: Backend/AnalysisBackendServer run: mvn clean verify - name: Publish Nightly Update Site if: github.event_name != 'release' && github.ref == 'refs/heads/main' && github.repository_owner == 'DataFlowAnalysis' uses: peaceiris/actions-gh-pages@v4 with: + path: Backend/AnalysisBackendServer deploy_key: ${{ secrets.UPDATE_SITE_DEPLOY_KEY }} external_repository: DataFlowAnalysis/updatesite destination_dir: nightly/analysis-backend-server/ @@ -40,6 +42,7 @@ jobs: if: github.event_name == 'release' && github.repository_owner == 'DataFlowAnalysis' uses: peaceiris/actions-gh-pages@v4 with: + path: Backend/AnalysisBackendServer deploy_key: ${{ secrets.UPDATE_SITE_DEPLOY_KEY }} external_repository: DataFlowAnalysis/updatesite destination_dir: release/analysis-backend-server/${{ github.event.release.tag_name }} diff --git a/Frontend/WebEditor/.github/workflows/checkFormat.yaml b/.github/workflows/checkFormat.yaml similarity index 92% rename from Frontend/WebEditor/.github/workflows/checkFormat.yaml rename to .github/workflows/checkFormat.yaml index 89c706ef..83ea0c28 100644 --- a/Frontend/WebEditor/.github/workflows/checkFormat.yaml +++ b/.github/workflows/checkFormat.yaml @@ -16,6 +16,7 @@ jobs: node-version: "22" - name: Install and Lint + working-directory: Frontend/WebEditor run: | npm install npx prettier --check ./**/*.html diff --git a/Frontend/WebEditor/.github/workflows/checkLint.yaml b/.github/workflows/checkLint.yaml similarity index 88% rename from Frontend/WebEditor/.github/workflows/checkLint.yaml rename to .github/workflows/checkLint.yaml index 80fabb14..b91a214f 100644 --- a/Frontend/WebEditor/.github/workflows/checkLint.yaml +++ b/.github/workflows/checkLint.yaml @@ -16,6 +16,7 @@ jobs: node-version: "22" - name: Install and Lint + working-directory: Frontend/WebEditor run: | npm install npm run lint diff --git a/Frontend/WebEditor/.github/workflows/pages.yaml b/.github/workflows/pages.yaml similarity index 78% rename from Frontend/WebEditor/.github/workflows/pages.yaml rename to .github/workflows/pages.yaml index c5b21e84..b4ce64ee 100644 --- a/Frontend/WebEditor/.github/workflows/pages.yaml +++ b/.github/workflows/pages.yaml @@ -14,24 +14,28 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 + - name: Use Node.js 20.x uses: actions/setup-node@v4 with: node-version: 20.x cache: npm + cache-dependency-path: Frontend/WebEditor/package-lock.json - name: Install dependencies + working-directory: Frontend/WebEditor run: npm install - name: Build project + working-directory: Frontend/WebEditor run: npm run build - name: Upload Pages artifact if: github.ref == 'refs/heads/main' uses: actions/upload-pages-artifact@v3 with: - path: "./dist/" + path: Frontend/WebEditor/dist - name: Deploy to GitHub Pages if: github.ref == 'refs/heads/main' - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/Backend/AnalysisBackendServer/.github/dependabot.yml b/Backend/AnalysisBackendServer/.github/dependabot.yml deleted file mode 100644 index 9a4aad36..00000000 --- a/Backend/AnalysisBackendServer/.github/dependabot.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" - day: "sunday" - time: "04:04" - - - package-ecosystem: "maven" - directory: "/" - schedule: - interval: "weekly" - day: "sunday" - time: "04:04"