Skip to content

Commit

Permalink
feat(dashboard): admin ui & pagination with header (#21)
Browse files Browse the repository at this point in the history
* feat(dashboard): admin ui & pagination with header
  • Loading branch information
Ealenn authored Jun 19, 2022
1 parent 29b1c0b commit b5136b9
Show file tree
Hide file tree
Showing 115 changed files with 33,604 additions and 134 deletions.
5 changes: 0 additions & 5 deletions .env

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/admin-heroku-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Admin - Deploy Manual"

on:
workflow_dispatch:

jobs:
heroku:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./admin
steps:
- uses: actions/checkout@v3
with:
path: 'admin'
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
id: extract_branch
- uses: akhileshns/[email protected]
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: ${{secrets.HEROKU_ADMIN}}
heroku_email: ${{secrets.HEROKU_EMAIL}}
buildpack: "https://github.com/heroku/heroku-buildpack-nodejs"
procfile: "web: npm run start:prod"
env:
HD_PORT: 80
HD_APP_VERSION: ${{ steps.extract_branch.outputs.branch }}
30 changes: 30 additions & 0 deletions .github/workflows/admin-heroku.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Admin - Deploy Auto"

on:
release:
types: [published]

jobs:
heroku:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./admin
steps:
- uses: actions/checkout@v3
with:
path: 'admin'
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
id: extract_branch
- uses: akhileshns/[email protected]
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: ${{secrets.HEROKU_ADMIN}}
heroku_email: ${{secrets.HEROKU_EMAIL}}
buildpack: "https://github.com/heroku/heroku-buildpack-nodejs"
procfile: "web: npm run start:prod"
env:
HD_PORT: 80
HD_APP_VERSION: ${{ steps.extract_branch.outputs.branch }}
34 changes: 34 additions & 0 deletions .github/workflows/admin-nodejs-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Admin - NodeJS Tests"

on:
push:
branches:
- master
pull_request:
branches: ['*']

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./admin
strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
with:
path: 'admin'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install, build, and test
run: |
cd admin
npm ci
npm run build
env:
CI: true
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: "Deploy Manual"
name: "Core - Deploy Manual"

on:
workflow_dispatch:

jobs:
heroku:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./core

steps:
- uses: actions/checkout@v3
with:
path: 'core'
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Deploy Auto"
name: "Core - Deploy Auto"

on:
release:
Expand All @@ -7,8 +7,14 @@ on:
jobs:
heroku:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./core

steps:
- uses: actions/checkout@v3
with:
path: 'core'
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "NodeJS Linter"
name: "Core - NodeJS Linter"

on:
pull_request:
Expand All @@ -7,18 +7,24 @@ on:
jobs:
linter:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./core
strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
with:
path: 'core'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install, build, and test
run: |
cd core
npm ci
npm run lint
env:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "NodeJS Tests"
name: "Core - NodeJS Tests"

on:
push:
Expand All @@ -10,18 +10,24 @@ on:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./core
strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
with:
path: 'core'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install, build, and test
run: |
cd core
npm ci
npm run build
npm run test:cov
Expand Down
Loading

0 comments on commit b5136b9

Please sign in to comment.