-
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.
Merge pull request #564 from dreammall-earth/admin-boilerplate
feat(other): initialize admin from boilerplate
- Loading branch information
Showing
114 changed files
with
32,090 additions
and
79 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: "admin:deploy:chromatic" | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
build-and-deploy: | ||
name: Chromatic - Admin | ||
runs-on: ubuntu-latest | ||
env: | ||
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN_ADMIN }} | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Admin | Build | ||
run: npm install && npm run chromatic -- --exit-zero-on-changes | ||
working-directory: ${{env.WORKING_DIRECTORY}} |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
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 - admin-test-build-code | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changes.outputs.admin-test-build-code }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check for admin 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 - Admin | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Admin | Build | ||
run: npm install && npm run build | ||
working-directory: ${{env.WORKING_DIRECTORY}} |
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
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 - admin-test-build-docker | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changes.outputs.admin-test-build-docker }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check for admin 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 - Admin | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- 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 - Admin | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Admin | Build Docker Development | ||
run: docker compose build | ||
working-directory: ${{env.WORKING_DIRECTORY}} |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
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 - admin-test-build-docs | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changes.outputs.admin-test-build-docs }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check for admin 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 - Admin | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Admin | Build Docs | ||
run: npm install && npm run docs:build | ||
working-directory: ${{env.WORKING_DIRECTORY}} |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
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 - admin-test-build-storybook | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changes.outputs.admin-test-build-storybook }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check for admin 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 - Admin | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Admin | Build Storybook | ||
run: npm install && npm run storybook:build | ||
working-directory: ${{env.WORKING_DIRECTORY}} |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
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 - admin-test-lint-code | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changes.outputs.admin-test-lint-code }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check for admin 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 - Admin | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Admin | Lint | ||
run: npm install && npm run test:lint | ||
working-directory: ${{env.WORKING_DIRECTORY}} |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
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 - admin-test-unit-code | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changes.outputs.admin-test-unit-code }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check for admin 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 - Admin | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./admin | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Admin | Unit | ||
run: npm install && npm run test:unit | ||
working-directory: ${{env.WORKING_DIRECTORY}} |
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 |
---|---|---|
|
@@ -32,6 +32,7 @@ jobs: | |
backend | ||
presenter | ||
frontend | ||
admin | ||
authentik | ||
docu | ||
docker | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules/ | ||
build/ | ||
coverage/ | ||
.vuepress/.temp/ | ||
.vuepress/.cache/ |
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 |
---|---|---|
@@ -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" |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules/ | ||
build/ | ||
coverage/ | ||
.storybook/ | ||
.vuepress/ |
Oops, something went wrong.