From 560a7f65b860c7a0ec422e7fa4d7d879aa2f628b Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Tue, 19 Mar 2024 18:53:40 +0100 Subject: [PATCH] move all workflows --- .github/dependabot.yml | 20 ++++++++++++++ .github/file-filters.yml | 21 ++++++++++++++- .../workflows/frontend.deploy.chromatic.yml | 6 +++-- .../workflows/frontend.test.build.code.yml | 5 +++- .../workflows/frontend.test.build.docker.yml | 8 +++++- .../workflows/frontend.test.build.docs.yml | 5 +++- .../frontend.test.build.storybook.yml | 5 +++- .../workflows/frontend.test.lint.code.yml | 5 +++- .../workflows/frontend.test.unit.code.yml | 5 +++- .../workflows/presenter.deploy.chromatic.yml | 2 +- .github/workflows/test.lint.pr.yml | 1 + frontend/.github/.remarkignore | 1 - frontend/.github/ISSUE_TEMPLATE.md | 13 ---------- frontend/.github/ISSUE_TEMPLATE/bug.md | 10 ------- frontend/.github/ISSUE_TEMPLATE/devops.md | 10 ------- frontend/.github/ISSUE_TEMPLATE/epic.md | 13 ---------- frontend/.github/ISSUE_TEMPLATE/feature.md | 10 ------- frontend/.github/ISSUE_TEMPLATE/question.md | 13 ---------- frontend/.github/ISSUE_TEMPLATE/refactor.md | 10 ------- frontend/.github/ISSUE_TEMPLATE/release.md | 13 ---------- frontend/.github/PULL_REQUEST_TEMPLATE.md | 15 ----------- frontend/.github/dependabot.yml | 26 ------------------- frontend/.github/file-filters.yml | 20 -------------- .../workflows/frontend.deploy.docs.yml | 21 --------------- 24 files changed, 73 insertions(+), 185 deletions(-) rename {frontend/.github => .github}/workflows/frontend.deploy.chromatic.yml (79%) rename {frontend/.github => .github}/workflows/frontend.test.build.code.yml (86%) rename {frontend/.github => .github}/workflows/frontend.test.build.docker.yml (85%) rename {frontend/.github => .github}/workflows/frontend.test.build.docs.yml (86%) rename {frontend/.github => .github}/workflows/frontend.test.build.storybook.yml (86%) rename {frontend/.github => .github}/workflows/frontend.test.lint.code.yml (86%) rename {frontend/.github => .github}/workflows/frontend.test.unit.code.yml (86%) delete mode 100644 frontend/.github/.remarkignore delete mode 100644 frontend/.github/ISSUE_TEMPLATE.md delete mode 100644 frontend/.github/ISSUE_TEMPLATE/bug.md delete mode 100644 frontend/.github/ISSUE_TEMPLATE/devops.md delete mode 100644 frontend/.github/ISSUE_TEMPLATE/epic.md delete mode 100644 frontend/.github/ISSUE_TEMPLATE/feature.md delete mode 100644 frontend/.github/ISSUE_TEMPLATE/question.md delete mode 100644 frontend/.github/ISSUE_TEMPLATE/refactor.md delete mode 100644 frontend/.github/ISSUE_TEMPLATE/release.md delete mode 100644 frontend/.github/PULL_REQUEST_TEMPLATE.md delete mode 100644 frontend/.github/dependabot.yml delete mode 100644 frontend/.github/file-filters.yml delete mode 100644 frontend/.github/workflows/frontend.deploy.docs.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 194c1b3e2f..87c008eb27 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -24,6 +24,7 @@ updates: day: "saturday" timezone: "Europe/Berlin" time: "03:00" + # presenter - package-ecosystem: npm directory: "/presenter" @@ -41,6 +42,25 @@ updates: day: "saturday" timezone: "Europe/Berlin" time: "03:00" + +# frontend +- package-ecosystem: npm + directory: "/frontend" + rebase-strategy: "disabled" + schedule: + interval: weekly + day: "saturday" + timezone: "Europe/Berlin" + time: "03:00" +- package-ecosystem: docker + directory: "/frontend" + rebase-strategy: "disabled" + schedule: + interval: weekly + day: "saturday" + timezone: "Europe/Berlin" + time: "03:00" + # backend - package-ecosystem: npm directory: "/backend" diff --git a/.github/file-filters.yml b/.github/file-filters.yml index c5abf87229..daef7e4156 100644 --- a/.github/file-filters.yml +++ b/.github/file-filters.yml @@ -16,7 +16,6 @@ presenter-test-build-code: &presenter-test-build-code presenter-test-build-docker: &presenter-test-build-docker - 'presenter/**/*' - presenter-test-build-docs: &presenter-test-build-docs - 'presenter/**/*.md' - 'presenter/.vuepress/*' @@ -24,6 +23,26 @@ presenter-test-build-docs: &presenter-test-build-docs presenter-test-build-storybook: &presenter-test-build-storybook - 'presenter/**/*' +# frontend +frontend-test-lint-code: &frontend-test-lint-code + - 'frontend/**/*' + +frontend-test-unit-code: &frontend-test-unit-code + - 'frontend/**/*' + +frontend-test-build-code: &frontend-test-build-code + - 'frontend/**/*' + +frontend-test-build-docker: &frontend-test-build-docker + - 'frontend/**/*' + +frontend-test-build-docs: &frontend-test-build-docs + - 'frontend/**/*.md' + - 'frontend/.vuepress/*' + +frontend-test-build-storybook: &frontend-test-build-storybook + - 'frontend/**/*' + # backend backend-test-lint-code: &backend-test-lint-code - 'backend/**/*' diff --git a/frontend/.github/workflows/frontend.deploy.chromatic.yml b/.github/workflows/frontend.deploy.chromatic.yml similarity index 79% rename from frontend/.github/workflows/frontend.deploy.chromatic.yml rename to .github/workflows/frontend.deploy.chromatic.yml index 0bb3569692..569f522ec0 100644 --- a/frontend/.github/workflows/frontend.deploy.chromatic.yml +++ b/.github/workflows/frontend.deploy.chromatic.yml @@ -8,7 +8,8 @@ jobs: name: Chromatic - Frontend runs-on: ubuntu-latest env: - CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN_FRONTEND }} + WORKING_DIRECTORY: ./frontend steps: - name: Checkout code uses: actions/checkout@v4 @@ -16,4 +17,5 @@ jobs: fetch-depth: 0 - name: Frontend | Build - run: npm install && npm run chromatic -- --exit-zero-on-changes \ No newline at end of file + run: npm install && npm run chromatic -- --exit-zero-on-changes + working-directory: ${{env.WORKING_DIRECTORY}} \ No newline at end of file diff --git a/frontend/.github/workflows/frontend.test.build.code.yml b/.github/workflows/frontend.test.build.code.yml similarity index 86% rename from frontend/.github/workflows/frontend.test.build.code.yml rename to .github/workflows/frontend.test.build.code.yml index cdae394f5a..335ea3cbea 100644 --- a/frontend/.github/workflows/frontend.test.build.code.yml +++ b/.github/workflows/frontend.test.build.code.yml @@ -26,9 +26,12 @@ jobs: name: Build - Frontend needs: files-changed runs-on: ubuntu-latest + env: + WORKING_DIRECTORY: ./frontend steps: - name: Checkout code uses: actions/checkout@v4 - name: Frontend | Build - run: npm install && npm run build \ No newline at end of file + run: npm install && npm run build + working-directory: ${{env.WORKING_DIRECTORY}} \ No newline at end of file diff --git a/frontend/.github/workflows/frontend.test.build.docker.yml b/.github/workflows/frontend.test.build.docker.yml similarity index 85% rename from frontend/.github/workflows/frontend.test.build.docker.yml rename to .github/workflows/frontend.test.build.docker.yml index 8346aad43a..0f88830d8e 100644 --- a/frontend/.github/workflows/frontend.test.build.docker.yml +++ b/.github/workflows/frontend.test.build.docker.yml @@ -26,21 +26,27 @@ jobs: name: Build Docker Production - Frontend needs: files-changed runs-on: ubuntu-latest + env: + WORKING_DIRECTORY: ./frontend steps: - name: Checkout code uses: actions/checkout@v4 - name: Frontend | Build Docker Production run: docker compose -f docker-compose.yml build + working-directory: ${{env.WORKING_DIRECTORY}} build-development: if: needs.files-changed.outputs.changes == 'true' name: Build Docker Development - Frontend needs: files-changed runs-on: ubuntu-latest + env: + WORKING_DIRECTORY: ./frontend steps: - name: Checkout code uses: actions/checkout@v4 - name: Frontend | Build Docker Development - run: docker compose build \ No newline at end of file + run: docker compose build + working-directory: ${{env.WORKING_DIRECTORY}} \ No newline at end of file diff --git a/frontend/.github/workflows/frontend.test.build.docs.yml b/.github/workflows/frontend.test.build.docs.yml similarity index 86% rename from frontend/.github/workflows/frontend.test.build.docs.yml rename to .github/workflows/frontend.test.build.docs.yml index 7ce9ac22f8..9211abfd90 100644 --- a/frontend/.github/workflows/frontend.test.build.docs.yml +++ b/.github/workflows/frontend.test.build.docs.yml @@ -26,9 +26,12 @@ jobs: name: Build Docs - Frontend needs: files-changed runs-on: ubuntu-latest + env: + WORKING_DIRECTORY: ./frontend steps: - name: Checkout code uses: actions/checkout@v4 - name: Frontend | Build Docs - run: npm install && npm run docs:build \ No newline at end of file + run: npm install && npm run docs:build + working-directory: ${{env.WORKING_DIRECTORY}} \ No newline at end of file diff --git a/frontend/.github/workflows/frontend.test.build.storybook.yml b/.github/workflows/frontend.test.build.storybook.yml similarity index 86% rename from frontend/.github/workflows/frontend.test.build.storybook.yml rename to .github/workflows/frontend.test.build.storybook.yml index 13a26090d8..9cadcd23ee 100644 --- a/frontend/.github/workflows/frontend.test.build.storybook.yml +++ b/.github/workflows/frontend.test.build.storybook.yml @@ -26,9 +26,12 @@ jobs: name: Build Storybook - Frontend needs: files-changed runs-on: ubuntu-latest + env: + WORKING_DIRECTORY: ./frontend steps: - name: Checkout code uses: actions/checkout@v4 - name: Frontend | Build Storybook - run: npm install && npm run storybook:build \ No newline at end of file + run: npm install && npm run storybook:build + working-directory: ${{env.WORKING_DIRECTORY}} \ No newline at end of file diff --git a/frontend/.github/workflows/frontend.test.lint.code.yml b/.github/workflows/frontend.test.lint.code.yml similarity index 86% rename from frontend/.github/workflows/frontend.test.lint.code.yml rename to .github/workflows/frontend.test.lint.code.yml index 2e1aeaf755..7cba5e8114 100644 --- a/frontend/.github/workflows/frontend.test.lint.code.yml +++ b/.github/workflows/frontend.test.lint.code.yml @@ -26,9 +26,12 @@ jobs: name: Lint - Frontend needs: files-changed runs-on: ubuntu-latest + env: + WORKING_DIRECTORY: ./frontend steps: - name: Checkout code uses: actions/checkout@v4 - name: Frontend | Lint - run: npm install && npm run test:lint \ No newline at end of file + run: npm install && npm run test:lint + working-directory: ${{env.WORKING_DIRECTORY}} \ No newline at end of file diff --git a/frontend/.github/workflows/frontend.test.unit.code.yml b/.github/workflows/frontend.test.unit.code.yml similarity index 86% rename from frontend/.github/workflows/frontend.test.unit.code.yml rename to .github/workflows/frontend.test.unit.code.yml index f36d1ab3f9..00dd78ded2 100644 --- a/frontend/.github/workflows/frontend.test.unit.code.yml +++ b/.github/workflows/frontend.test.unit.code.yml @@ -26,9 +26,12 @@ jobs: name: Unit - Frontend needs: files-changed runs-on: ubuntu-latest + env: + WORKING_DIRECTORY: ./frontend steps: - name: Checkout code uses: actions/checkout@v4 - name: Frontend | Unit - run: npm install && npm run test:unit \ No newline at end of file + run: npm install && npm run test:unit + working-directory: ${{env.WORKING_DIRECTORY}} \ No newline at end of file diff --git a/.github/workflows/presenter.deploy.chromatic.yml b/.github/workflows/presenter.deploy.chromatic.yml index caf2ab4083..81be5fe968 100644 --- a/.github/workflows/presenter.deploy.chromatic.yml +++ b/.github/workflows/presenter.deploy.chromatic.yml @@ -8,7 +8,7 @@ jobs: name: Chromatic - Presenter runs-on: ubuntu-latest env: - CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN_PRESENTER }} WORKING_DIRECTORY: ./presenter steps: - name: Set Node version diff --git a/.github/workflows/test.lint.pr.yml b/.github/workflows/test.lint.pr.yml index bb1179f6a6..01fe9acf6f 100644 --- a/.github/workflows/test.lint.pr.yml +++ b/.github/workflows/test.lint.pr.yml @@ -31,6 +31,7 @@ jobs: scopes: | backend presenter + frontend docu docker release diff --git a/frontend/.github/.remarkignore b/frontend/.github/.remarkignore deleted file mode 100644 index f59ec20aab..0000000000 --- a/frontend/.github/.remarkignore +++ /dev/null @@ -1 +0,0 @@ -* \ No newline at end of file diff --git a/frontend/.github/ISSUE_TEMPLATE.md b/frontend/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 9c617ee43f..0000000000 --- a/frontend/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,13 +0,0 @@ - - - - -## 💬 Issue - - - diff --git a/frontend/.github/ISSUE_TEMPLATE/bug.md b/frontend/.github/ISSUE_TEMPLATE/bug.md deleted file mode 100644 index d73d32d3fd..0000000000 --- a/frontend/.github/ISSUE_TEMPLATE/bug.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: 🐛 Bug -about: Create a report to help us improve -labels: bug -title: 🐛 [Bug] ---- - - -## 🐛 Bug - diff --git a/frontend/.github/ISSUE_TEMPLATE/devops.md b/frontend/.github/ISSUE_TEMPLATE/devops.md deleted file mode 100644 index 038fcc8c10..0000000000 --- a/frontend/.github/ISSUE_TEMPLATE/devops.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: 💥 DevOp -about: Help us manage our deployed Software. -labels: devops -title: 💥 [DevOps] ---- - - -## 💥 DevOps - diff --git a/frontend/.github/ISSUE_TEMPLATE/epic.md b/frontend/.github/ISSUE_TEMPLATE/epic.md deleted file mode 100644 index af511e6e22..0000000000 --- a/frontend/.github/ISSUE_TEMPLATE/epic.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -name: 🌟 Epic -about: Define a big development Step -labels: epic -title: 🌟 [EPIC] ---- - - - - - -## 🌟 EPIC - diff --git a/frontend/.github/ISSUE_TEMPLATE/feature.md b/frontend/.github/ISSUE_TEMPLATE/feature.md deleted file mode 100644 index 27f2211d79..0000000000 --- a/frontend/.github/ISSUE_TEMPLATE/feature.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: 🚀 Feature -about: Suggest an idea for this project -labels: feature -title: 🚀 [Feature] ---- - - -## 🚀 Feature - diff --git a/frontend/.github/ISSUE_TEMPLATE/question.md b/frontend/.github/ISSUE_TEMPLATE/question.md deleted file mode 100644 index b57adcd063..0000000000 --- a/frontend/.github/ISSUE_TEMPLATE/question.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -name: 💬 Question -about: If you need help understanding our Software. -labels: question -title: 💬 [Question] ---- - - - - - -## 💬 Question - diff --git a/frontend/.github/ISSUE_TEMPLATE/refactor.md b/frontend/.github/ISSUE_TEMPLATE/refactor.md deleted file mode 100644 index 49223c6d55..0000000000 --- a/frontend/.github/ISSUE_TEMPLATE/refactor.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: 🔧 Refactor -about: Help us improve our code by refactoring it. -labels: refactor -title: 🔧 [Refactor] ---- - - -## 🔧 Refactor - diff --git a/frontend/.github/ISSUE_TEMPLATE/release.md b/frontend/.github/ISSUE_TEMPLATE/release.md deleted file mode 100644 index c9f4b787d5..0000000000 --- a/frontend/.github/ISSUE_TEMPLATE/release.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -name: 🎂 Release -about: Define a Release -labels: release -title: 🎂 [RELEASE] ---- - - - - - -## 🎂 RELEASE - diff --git a/frontend/.github/PULL_REQUEST_TEMPLATE.md b/frontend/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index d40a2770ac..0000000000 --- a/frontend/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,15 +0,0 @@ - - -## 🍰 Pullrequest - - -### Issues - -- None - -### Todo - -- [X] None diff --git a/frontend/.github/dependabot.yml b/frontend/.github/dependabot.yml deleted file mode 100644 index 12502a7e06..0000000000 --- a/frontend/.github/dependabot.yml +++ /dev/null @@ -1,26 +0,0 @@ -version: 2 -updates: -- package-ecosystem: "github-actions" - directory: "/" - rebase-strategy: "disabled" - schedule: - interval: weekly - day: "saturday" - timezone: "Europe/Berlin" - time: "03:00" -- package-ecosystem: npm - directory: "/" - rebase-strategy: "disabled" - schedule: - interval: weekly - day: "saturday" - timezone: "Europe/Berlin" - time: "03:00" -- package-ecosystem: docker - directory: "/" - rebase-strategy: "disabled" - schedule: - interval: weekly - day: "saturday" - timezone: "Europe/Berlin" - time: "03:00" \ No newline at end of file diff --git a/frontend/.github/file-filters.yml b/frontend/.github/file-filters.yml deleted file mode 100644 index 0a232f0a74..0000000000 --- a/frontend/.github/file-filters.yml +++ /dev/null @@ -1,20 +0,0 @@ -# These file filter patterns are used by the action https://github.com/dorny/paths-filter - -frontend-test-lint-code: &frontend-test-lint-code - - '**/*' - -frontend-test-unit-code: &frontend-test-unit-code - - '**/*' - -frontend-test-build-code: &frontend-test-build-code - - '**/*' - -frontend-test-build-docker: &frontend-test-build-docker - - '**/*' - -frontend-test-build-docs: &frontend-test-build-docs - - '**/*.md' - - '.vuepress/*' - -frontend-test-build-storybook: &frontend-test-build-storybook - - '**/*' \ No newline at end of file diff --git a/frontend/.github/workflows/frontend.deploy.docs.yml b/frontend/.github/workflows/frontend.deploy.docs.yml deleted file mode 100644 index 957e80aba0..0000000000 --- a/frontend/.github/workflows/frontend.deploy.docs.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: "frontend:deploy:docs to github" -on: - push: - branches: - - master -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@master - - - name: vuepress-deploy - uses: jenkey2011/vuepress-deploy@master - env: - ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - #TARGET_REPO: username/repo - #TARGET_BRANCH: master - BUILD_SCRIPT: npm install && npm run docs:build - BUILD_DIR: build/docs/ - VUEPRESS_BASE: "boilerplate-frontend" \ No newline at end of file