mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-26 14:22:23 +02:00
:Apply templates (#3799)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
+29
-144
@@ -19,6 +19,24 @@ on:
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
CacheFolders: |
|
||||
common
|
||||
deploy
|
||||
dev
|
||||
models
|
||||
packages
|
||||
plugins
|
||||
pods
|
||||
products
|
||||
server
|
||||
server-plugins
|
||||
templates
|
||||
tests
|
||||
rush.json
|
||||
.prettierrc
|
||||
tools
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
@@ -37,18 +55,10 @@ jobs:
|
||||
cache-name: cache-node-modules
|
||||
with:
|
||||
path: |
|
||||
./common/temp
|
||||
!./common/temp/build-cache
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./common/temp/pnpm-lock.yaml') }}
|
||||
common/temp
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./common/temp/pnpm-lock.yaml') }}
|
||||
- name: Cache Build cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ./common/temp/build-cache
|
||||
key: build-cache-${{ hashFiles('./common/temp/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
build-cache-${{ hashFiles('./common/temp/pnpm-lock.yaml') }}
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
|
||||
- name: Checking for mis-matching dependencies...
|
||||
run: node common/scripts/install-run-rush.js check
|
||||
@@ -63,29 +73,14 @@ jobs:
|
||||
run: node common/scripts/install-run-rush.js build
|
||||
|
||||
- name: Bundle
|
||||
run: node common/scripts/install-run-rush.js bundle --verbose
|
||||
run: node common/scripts/install-run-rush.js bundle
|
||||
|
||||
- name: Cache build results for next jobs
|
||||
- name: Cache build results
|
||||
uses: actions/cache@v3
|
||||
env:
|
||||
cache-name: cache-build-results
|
||||
with:
|
||||
path: |
|
||||
common
|
||||
deploy
|
||||
dev
|
||||
models
|
||||
packages
|
||||
plugins
|
||||
pods
|
||||
products
|
||||
server
|
||||
server-plugins
|
||||
templates
|
||||
tests
|
||||
rush.json
|
||||
.prettierrc
|
||||
tools
|
||||
path: ${{ env.CacheFolders}}
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
|
||||
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
|
||||
svelte-check:
|
||||
@@ -101,22 +96,7 @@ jobs:
|
||||
env:
|
||||
cache-name: cache-build-results
|
||||
with:
|
||||
path: |
|
||||
common
|
||||
deploy
|
||||
dev
|
||||
models
|
||||
packages
|
||||
plugins
|
||||
pods
|
||||
products
|
||||
server
|
||||
server-plugins
|
||||
templates
|
||||
tests
|
||||
rush.json
|
||||
.prettierrc
|
||||
tools
|
||||
path: ${{ env.CacheFolders}}
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
|
||||
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
|
||||
|
||||
@@ -134,27 +114,10 @@ jobs:
|
||||
env:
|
||||
cache-name: cache-build-results
|
||||
with:
|
||||
path: |
|
||||
common
|
||||
deploy
|
||||
dev
|
||||
models
|
||||
packages
|
||||
plugins
|
||||
pods
|
||||
products
|
||||
server
|
||||
server-plugins
|
||||
templates
|
||||
tests
|
||||
rush.json
|
||||
.prettierrc
|
||||
tools
|
||||
path: ${{ env.CacheFolders}}
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
|
||||
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
|
||||
|
||||
- name: Install...
|
||||
run: node common/scripts/install-run-rush.js install
|
||||
- name: Formatting...
|
||||
run: node common/scripts/install-run-rush.js fast-format
|
||||
- name: Check files formatting
|
||||
@@ -178,31 +141,9 @@ jobs:
|
||||
env:
|
||||
cache-name: cache-build-results
|
||||
with:
|
||||
path: |
|
||||
common
|
||||
deploy
|
||||
dev
|
||||
models
|
||||
packages
|
||||
plugins
|
||||
pods
|
||||
products
|
||||
server
|
||||
server-plugins
|
||||
templates
|
||||
tests
|
||||
rush.json
|
||||
.prettierrc
|
||||
tools
|
||||
path: ${{ env.CacheFolders}}
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
|
||||
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
|
||||
- name: Cache Build cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ./common/temp/build-cache
|
||||
key: build-cache-${{ hashFiles('./common/temp/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
build-cache-${{ hashFiles('./common/temp/pnpm-lock.yaml') }}
|
||||
- name: Start MongoDB
|
||||
uses: supercharge/mongodb-github-action@v1.10.0
|
||||
with:
|
||||
@@ -217,49 +158,15 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Cache Build cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ./common/temp/build-cache
|
||||
key: build-cache-${{ hashFiles('./common/temp/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
build-cache-${{ hashFiles('./common/temp/pnpm-lock.yaml') }}
|
||||
- name: Cache build results
|
||||
uses: actions/cache@v3
|
||||
env:
|
||||
cache-name: cache-build-results
|
||||
with:
|
||||
path: |
|
||||
common
|
||||
deploy
|
||||
dev
|
||||
models
|
||||
packages
|
||||
plugins
|
||||
pods
|
||||
products
|
||||
server
|
||||
server-plugins
|
||||
templates
|
||||
tests
|
||||
rush.json
|
||||
.prettierrc
|
||||
tools
|
||||
path: ${{ env.CacheFolders}}
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
|
||||
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
|
||||
|
||||
- name: Installing...
|
||||
run: node common/scripts/install-run-rush.js install
|
||||
|
||||
- name: Setting model version from git release...
|
||||
run: node common/scripts/install-run-rush.js bump-model-version
|
||||
|
||||
- name: Building...
|
||||
run: node common/scripts/install-run-rush.js build
|
||||
|
||||
- name: Bundle
|
||||
run: node common/scripts/install-run-rush.js bundle
|
||||
|
||||
- name: Docker build
|
||||
run: node common/scripts/install-run-rush.js docker:build
|
||||
env:
|
||||
@@ -315,34 +222,12 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Cache Build cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ./common/temp/build-cache
|
||||
key: build-cache-${{ hashFiles('./common/temp/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
build-cache-${{ hashFiles('./common/temp/pnpm-lock.yaml') }}
|
||||
- name: Cache build results
|
||||
uses: actions/cache@v3
|
||||
env:
|
||||
cache-name: cache-build-results
|
||||
with:
|
||||
path: |
|
||||
common
|
||||
deploy
|
||||
dev
|
||||
models
|
||||
packages
|
||||
plugins
|
||||
pods
|
||||
products
|
||||
server
|
||||
server-plugins
|
||||
templates
|
||||
tests
|
||||
rush.json
|
||||
.prettierrc
|
||||
tools
|
||||
path: ${{ env.CacheFolders}}
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
|
||||
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user