Skip to content

Commit

Permalink
Merge branch 'master' into sso-dreammall-flows
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt authored Mar 20, 2024
2 parents 97d17ea + 8b37487 commit e3d06da
Show file tree
Hide file tree
Showing 114 changed files with 37,909 additions and 13 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
21 changes: 21 additions & 0 deletions .github/workflows/frontend.deploy.chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "frontend:deploy:chromatic"
on:
push:
branches:
- master
jobs:
build-and-deploy:
name: Chromatic - Frontend
runs-on: ubuntu-latest
env:
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
working-directory: ${{env.WORKING_DIRECTORY}}
37 changes: 37 additions & 0 deletions .github/workflows/frontend.test.build.code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "frontend:test:build test code"

on: push

jobs:
# only (but most important) job from this workflow required for pull requests
# check results serve as run conditions for all other jobs here
files-changed:
name: Detect File Changes - frontend-test-build-code
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.changes.outputs.frontend-test-build-code }}
steps:
- uses: actions/checkout@v4

- name: Check for frontend file changes
uses: dorny/[email protected]
id: changes
with:
token: ${{ github.token }}
filters: .github/file-filters.yml
list-files: shell

build:
if: needs.files-changed.outputs.changes == 'true'
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
working-directory: ${{env.WORKING_DIRECTORY}}
52 changes: 52 additions & 0 deletions .github/workflows/frontend.test.build.docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "frontend:test:build test docker"

on: push

jobs:
# only (but most important) job from this workflow required for pull requests
# check results serve as run conditions for all other jobs here
files-changed:
name: Detect File Changes - frontend-test-build-docker
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.changes.outputs.frontend-test-build-docker }}
steps:
- uses: actions/checkout@v4

- name: Check for frontend file changes
uses: dorny/[email protected]
id: changes
with:
token: ${{ github.token }}
filters: .github/file-filters.yml
list-files: shell

build-production:
if: needs.files-changed.outputs.changes == 'true'
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
working-directory: ${{env.WORKING_DIRECTORY}}
37 changes: 37 additions & 0 deletions .github/workflows/frontend.test.build.docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "frontend:test:build test docs"

on: push

jobs:
# only (but most important) job from this workflow required for pull requests
# check results serve as run conditions for all other jobs here
files-changed:
name: Detect File Changes - frontend-test-build-docs
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.changes.outputs.frontend-test-build-docs }}
steps:
- uses: actions/checkout@v4

- name: Check for frontend file changes
uses: dorny/[email protected]
id: changes
with:
token: ${{ github.token }}
filters: .github/file-filters.yml
list-files: shell

build:
if: needs.files-changed.outputs.changes == 'true'
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
working-directory: ${{env.WORKING_DIRECTORY}}
37 changes: 37 additions & 0 deletions .github/workflows/frontend.test.build.storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "frontend:test:build test storybook"

on: push

jobs:
# only (but most important) job from this workflow required for pull requests
# check results serve as run conditions for all other jobs here
files-changed:
name: Detect File Changes - frontend-test-build-storybook
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.changes.outputs.frontend-test-build-storybook }}
steps:
- uses: actions/checkout@v4

- name: Check for frontend file changes
uses: dorny/[email protected]
id: changes
with:
token: ${{ github.token }}
filters: .github/file-filters.yml
list-files: shell

storybook:
if: needs.files-changed.outputs.changes == 'true'
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
working-directory: ${{env.WORKING_DIRECTORY}}
37 changes: 37 additions & 0 deletions .github/workflows/frontend.test.lint.code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "frontend:test:lint code with defined linters"

on: push

jobs:
# only (but most important) job from this workflow required for pull requests
# check results serve as run conditions for all other jobs here
files-changed:
name: Detect File Changes - frontend-test-lint-code
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.changes.outputs.frontend-test-lint-code }}
steps:
- uses: actions/checkout@v4

- name: Check for frontend file changes
uses: dorny/[email protected]
id: changes
with:
token: ${{ github.token }}
filters: .github/file-filters.yml
list-files: shell

lint:
if: needs.files-changed.outputs.changes == 'true'
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
working-directory: ${{env.WORKING_DIRECTORY}}
37 changes: 37 additions & 0 deletions .github/workflows/frontend.test.unit.code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "frontend:test:unit test code with defined suites"

on: push

jobs:
# only (but most important) job from this workflow required for pull requests
# check results serve as run conditions for all other jobs here
files-changed:
name: Detect File Changes - frontend-test-unit-code
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.changes.outputs.frontend-test-unit-code }}
steps:
- uses: actions/checkout@v4

- name: Check for frontend file changes
uses: dorny/[email protected]
id: changes
with:
token: ${{ github.token }}
filters: .github/file-filters.yml
list-files: shell

unit:
if: needs.files-changed.outputs.changes == 'true'
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
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
5 changes: 5 additions & 0 deletions frontend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
build/
coverage/
.vuepress/.temp/
.vuepress/.cache/
5 changes: 5 additions & 0 deletions frontend/.env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# META
PUBLIC_ENV__META__BASE_URL="http://localhost:3000"
PUBLIC_ENV__META__DEFAULT_AUTHOR="IT Team 4 Change"
PUBLIC_ENV__META__DEFAULT_DESCRIPTION="IT4C Frontend Boilerplate"
PUBLIC_ENV__META__DEFAULT_TITLE="IT4C"
5 changes: 5 additions & 0 deletions frontend/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
build/
coverage/
.storybook/
.vuepress/
Loading

0 comments on commit e3d06da

Please sign in to comment.