Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions .github/workflows/build-develop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
with:
repository: gewis/aurora-core
ref: develop
path: aurora-core

- name: Enable Corepack for core
run: cd aurora-core && corepack enable

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -27,19 +31,36 @@ jobs:
uses: borales/actions-yarn@v5
with:
cmd: install
dir: ./aurora-core

- name: Run tsoa
uses: borales/actions-yarn@v5
with:
cmd: tsoa
dir: ./aurora-core

- name: Checkout client
uses: actions/checkout@v4
with:
path: aurora-client

- name: Enable Corepack
run: cd aurora-client && corepack enable

- name: Install dependencies
uses: borales/actions-yarn@v5
with:
cmd: install
dir: ./aurora-client

- name: Generate client
uses: borales/actions-yarn@v5
with:
cmd: gen-client-backoffice
cmd: gen-client
dir: ./aurora-client

- name: Copy client
run: cp -r ../aurora-backoffice/src/api/ ./api
run: cp -r ./aurora-client/src/api/ ./api

- uses: actions/upload-artifact@v4
with:
Expand Down
25 changes: 23 additions & 2 deletions .github/workflows/build-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
with:
repository: gewis/aurora-core
ref: master
path: aurora-core

- name: Enable Corepack for core
run: cd aurora-core && corepack enable

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -27,19 +31,36 @@ jobs:
uses: borales/actions-yarn@v5
with:
cmd: install
dir: ./aurora-core

- name: Run tsoa
uses: borales/actions-yarn@v5
with:
cmd: tsoa
dir: ./aurora-core

- name: Checkout client
uses: actions/checkout@v4
with:
path: aurora-client

- name: Enable Corepack
run: cd aurora-client && corepack enable

- name: Install dependencies
uses: borales/actions-yarn@v5
with:
cmd: install
dir: ./aurora-client

- name: Generate client
uses: borales/actions-yarn@v5
with:
cmd: gen-client-backoffice
cmd: gen-client
dir: ./aurora-client

- name: Copy client
run: cp -r ../aurora-backoffice/src/api/ ./api
run: cp -r ./aurora-client/src/api/ ./api

- uses: actions/upload-artifact@v4
with:
Expand Down