Skip to content

Commit

Permalink
move all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt committed Mar 19, 2024
1 parent ce7704c commit 560a7f6
Show file tree
Hide file tree
Showing 24 changed files with 73 additions and 185 deletions.
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ updates:
day: "saturday"
timezone: "Europe/Berlin"
time: "03:00"

# presenter
- package-ecosystem: npm
directory: "/presenter"
Expand All @@ -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"
Expand Down
21 changes: 20 additions & 1 deletion .github/file-filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,33 @@ 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/*'

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/**/*'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ 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
with:
fetch-depth: 0

- name: Frontend | Build
run: npm install && npm run chromatic -- --exit-zero-on-changes
run: npm install && npm run chromatic -- --exit-zero-on-changes
working-directory: ${{env.WORKING_DIRECTORY}}
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: npm install && npm run build
working-directory: ${{env.WORKING_DIRECTORY}}
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: docker compose build
working-directory: ${{env.WORKING_DIRECTORY}}
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: npm install && npm run docs:build
working-directory: ${{env.WORKING_DIRECTORY}}
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: npm install && npm run storybook:build
working-directory: ${{env.WORKING_DIRECTORY}}
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: npm install && npm run test:lint
working-directory: ${{env.WORKING_DIRECTORY}}
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: npm install && npm run test:unit
working-directory: ${{env.WORKING_DIRECTORY}}
2 changes: 1 addition & 1 deletion .github/workflows/presenter.deploy.chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.lint.pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
scopes: |
backend
presenter
frontend
docu
docker
release
Expand Down
1 change: 0 additions & 1 deletion frontend/.github/.remarkignore

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/.github/ISSUE_TEMPLATE.md

This file was deleted.

10 changes: 0 additions & 10 deletions frontend/.github/ISSUE_TEMPLATE/bug.md

This file was deleted.

10 changes: 0 additions & 10 deletions frontend/.github/ISSUE_TEMPLATE/devops.md

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/.github/ISSUE_TEMPLATE/epic.md

This file was deleted.

10 changes: 0 additions & 10 deletions frontend/.github/ISSUE_TEMPLATE/feature.md

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/.github/ISSUE_TEMPLATE/question.md

This file was deleted.

10 changes: 0 additions & 10 deletions frontend/.github/ISSUE_TEMPLATE/refactor.md

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/.github/ISSUE_TEMPLATE/release.md

This file was deleted.

15 changes: 0 additions & 15 deletions frontend/.github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

26 changes: 0 additions & 26 deletions frontend/.github/dependabot.yml

This file was deleted.

20 changes: 0 additions & 20 deletions frontend/.github/file-filters.yml

This file was deleted.

Loading

0 comments on commit 560a7f6

Please sign in to comment.