-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b89d7e2
commit 30fb59e
Showing
22 changed files
with
98 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
...b/workflows/frontend.deploy.chromatic.yml → .github/workflows/admin.deploy.chromatic.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
name: "frontend:deploy:chromatic" | ||
name: "admin:deploy:chromatic" | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
build-and-deploy: | ||
name: Chromatic - Frontend | ||
name: Chromatic - Admin | ||
runs-on: ubuntu-latest | ||
env: | ||
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN_ADMIN }} | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Frontend | Build | ||
- name: Admin | Build | ||
run: npm install && npm run chromatic -- --exit-zero-on-changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
name: "frontend:test:build test code" | ||
name: "admin: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 | ||
name: Detect File Changes - admin-test-build-code | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changes.outputs.frontend-test-build-code }} | ||
changes: ${{ steps.changes.outputs.admin-test-build-code }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check for frontend file changes | ||
- name: Check for admin file changes | ||
uses: dorny/[email protected] | ||
id: changes | ||
with: | ||
|
@@ -23,12 +23,14 @@ jobs: | |
|
||
build: | ||
if: needs.files-changed.outputs.changes == 'true' | ||
name: Build - Frontend | ||
name: Build - Admin | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Frontend | Build | ||
- name: Admin | Build | ||
run: npm install && npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
name: "frontend:test:build test docker" | ||
name: "admin: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 | ||
name: Detect File Changes - admin-test-build-docker | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changes.outputs.frontend-test-build-docker }} | ||
changes: ${{ steps.changes.outputs.admin-test-build-docker }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check for frontend file changes | ||
- name: Check for admin file changes | ||
uses: dorny/[email protected] | ||
id: changes | ||
with: | ||
|
@@ -23,24 +23,28 @@ jobs: | |
|
||
build-production: | ||
if: needs.files-changed.outputs.changes == 'true' | ||
name: Build Docker Production - Frontend | ||
name: Build Docker Production - Admin | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Frontend | Build Docker Production | ||
- name: Admin | Build Docker Production | ||
run: docker compose -f docker-compose.yml build | ||
|
||
build-development: | ||
if: needs.files-changed.outputs.changes == 'true' | ||
name: Build Docker Development - Frontend | ||
name: Build Docker Development - Admin | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Frontend | Build Docker Development | ||
- name: Admin | Build Docker Development | ||
run: docker compose build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
name: "frontend:test:build test docs" | ||
name: "admin: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 | ||
name: Detect File Changes - admin-test-build-docs | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changes.outputs.frontend-test-build-docs }} | ||
changes: ${{ steps.changes.outputs.admin-test-build-docs }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check for frontend file changes | ||
- name: Check for admin file changes | ||
uses: dorny/[email protected] | ||
id: changes | ||
with: | ||
|
@@ -23,12 +23,14 @@ jobs: | |
|
||
build: | ||
if: needs.files-changed.outputs.changes == 'true' | ||
name: Build Docs - Frontend | ||
name: Build Docs - Admin | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Frontend | Build Docs | ||
- name: Admin | Build Docs | ||
run: npm install && npm run docs:build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
name: "frontend:test:build test storybook" | ||
name: "admin: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 | ||
name: Detect File Changes - admin-test-build-storybook | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changes.outputs.frontend-test-build-storybook }} | ||
changes: ${{ steps.changes.outputs.admin-test-build-storybook }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check for frontend file changes | ||
- name: Check for admin file changes | ||
uses: dorny/[email protected] | ||
id: changes | ||
with: | ||
|
@@ -23,12 +23,14 @@ jobs: | |
|
||
storybook: | ||
if: needs.files-changed.outputs.changes == 'true' | ||
name: Build Storybook - Frontend | ||
name: Build Storybook - Admin | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Frontend | Build Storybook | ||
- name: Admin | Build Storybook | ||
run: npm install && npm run storybook:build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
name: "frontend:test:lint code with defined linters" | ||
name: "admin: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 | ||
name: Detect File Changes - admin-test-lint-code | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changes.outputs.frontend-test-lint-code }} | ||
changes: ${{ steps.changes.outputs.admin-test-lint-code }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check for frontend file changes | ||
- name: Check for admin file changes | ||
uses: dorny/[email protected] | ||
id: changes | ||
with: | ||
|
@@ -23,12 +23,14 @@ jobs: | |
|
||
lint: | ||
if: needs.files-changed.outputs.changes == 'true' | ||
name: Lint - Frontend | ||
name: Lint - Admin | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Frontend | Lint | ||
- name: Admin | Lint | ||
run: npm install && npm run test:lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
name: "frontend:test:unit test code with defined suites" | ||
name: "admin: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 | ||
name: Detect File Changes - admin-test-unit-code | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changes.outputs.frontend-test-unit-code }} | ||
changes: ${{ steps.changes.outputs.admin-test-unit-code }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check for frontend file changes | ||
- name: Check for admin file changes | ||
uses: dorny/[email protected] | ||
id: changes | ||
with: | ||
|
@@ -23,12 +23,14 @@ jobs: | |
|
||
unit: | ||
if: needs.files-changed.outputs.changes == 'true' | ||
name: Unit - Frontend | ||
name: Unit - Admin | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Frontend | Unit | ||
- name: Admin | Unit | ||
run: npm install && npm run test:unit |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.