Improve netcode and simplify (#4)
- Simplify the logic wherever possible to remove overengineering and simplify the netcode - Actually improve the netcode - The new lines are mainly the package locks and tests Reviewed-on: https://home.schmelczer.dev/git/andras/decla-red/pulls/4
This commit is contained in:
parent
5d854440ec
commit
93a7fe01ab
1 changed files with 15073 additions and 4754 deletions
|
|
@ -13,7 +13,6 @@ concurrency:
|
|||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
# ---- Static website -> /pages mount on the runner host --------------------
|
||||
website:
|
||||
name: Build & deploy website
|
||||
runs-on: docker
|
||||
|
|
@ -26,8 +25,11 @@ jobs:
|
|||
node-version-file: .nvmrc
|
||||
|
||||
- name: Install dependencies
|
||||
# No lockfiles are committed (see .gitignore), so use `npm install`.
|
||||
run: npm install && npm run init
|
||||
run: |
|
||||
npm ci
|
||||
npm --prefix shared ci
|
||||
npm --prefix frontend ci
|
||||
npm --prefix backend ci
|
||||
|
||||
- name: Build (shared -> frontend -> backend)
|
||||
run: npm run build
|
||||
|
|
@ -45,11 +47,9 @@ jobs:
|
|||
source: frontend/dist
|
||||
target: declared
|
||||
|
||||
# ---- Server Docker image -> Forgejo container registry --------------------
|
||||
server-image:
|
||||
name: Build & publish server image
|
||||
runs-on: docker
|
||||
# No registry push on PRs; build validation still happens in the website job.
|
||||
if: github.event_name != 'pull_request'
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
|
|||
Loading…
Reference in a new issue