Checkout the repo to dev and prod dirs to run different test targets
This commit is contained in:
parent
97686e1c87
commit
57adce693a
65
.github/workflows/ci.yml
vendored
65
.github/workflows/ci.yml
vendored
@ -4,34 +4,36 @@ on:
|
|||||||
env:
|
env:
|
||||||
NODE_VERSION: 16.15.0
|
NODE_VERSION: 16.15.0
|
||||||
jobs:
|
jobs:
|
||||||
build_backend:
|
build_backend_dev:
|
||||||
name: Build backend
|
name: Build backend (Development)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
path: dev
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- name: Install
|
- name: Install
|
||||||
run: npm install --prod
|
run: npm install
|
||||||
working-directory: backend
|
working-directory: dev/backend
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
working-directory: backend
|
working-directory: dev/backend
|
||||||
# - name: Test
|
# - name: Test
|
||||||
# run: npm run test
|
# run: npm run test
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
working-directory: backend
|
working-directory: dev/backend
|
||||||
build_frontend:
|
build_frontend_dev:
|
||||||
name: Build frontend
|
name: Build frontend (Development)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
path: dev
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
@ -39,12 +41,53 @@ jobs:
|
|||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- name: Install
|
- name: Install
|
||||||
run: npm install --prod
|
run: npm install --prod
|
||||||
working-directory: frontend
|
working-directory: dev/frontend
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
working-directory: frontend
|
working-directory: dev/frontend
|
||||||
# - name: Test
|
# - name: Test
|
||||||
# run: npm run test
|
# run: npm run test
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
working-directory: frontend
|
working-directory: dev/frontend
|
||||||
|
build_backend_prod:
|
||||||
|
name: Build backend (Prod Dependencies)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
path: prod
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
- name: Install
|
||||||
|
run: npm install --prod
|
||||||
|
working-directory: prod/backend
|
||||||
|
- name: Build
|
||||||
|
run: npm run build
|
||||||
|
working-directory: prod/backend
|
||||||
|
build_frontend_prod:
|
||||||
|
name: Build frontend (Prod Dependencies)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
path: prod
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
- name: Install
|
||||||
|
run: npm install --prod
|
||||||
|
working-directory: prod/frontend
|
||||||
|
- name: Lint
|
||||||
|
run: npm run lint
|
||||||
|
working-directory: prod/frontend
|
||||||
|
# - name: Test
|
||||||
|
# run: npm run test
|
||||||
|
- name: Build
|
||||||
|
run: npm run build
|
||||||
|
working-directory: prod/frontend
|
||||||
|
Loading…
x
Reference in New Issue
Block a user