upate
This commit is contained in:
parent
1fcceab8bb
commit
eb656dbab6
4 changed files with 64 additions and 6 deletions
6
.github/workflows/build-monorepo.yaml
vendored
6
.github/workflows/build-monorepo.yaml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: Build and push
|
||||
name: Build and push (monorepo)
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
|
|
@ -8,9 +8,9 @@ on:
|
|||
PROJECT_ID:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and push
|
||||
build_and_push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set current time
|
||||
|
|
|
|||
5
.github/workflows/build-standalone.yaml
vendored
5
.github/workflows/build-standalone.yaml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: Build and push
|
||||
name: Build and push (standalone)
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
|
|
@ -6,8 +6,7 @@ on:
|
|||
required: true
|
||||
type: string
|
||||
jobs:
|
||||
build:
|
||||
name: Build and push
|
||||
build_and_push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set current time
|
||||
|
|
|
|||
45
.github/workflows/lint-monorepo.yaml
vendored
Normal file
45
.github/workflows/lint-monorepo.yaml
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
name: Linting and type checking (monorepo)
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
PACKAGE_WRITER_USERNAME:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
linting_type_checking:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
NO_YARN_POSTINSTALL: 1
|
||||
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
||||
TURBO_API: ${{ vars.TURBO_API }}
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
FONTAWESOME_PACKAGE_TOKEN: ${{ secrets.FONTAWESOME_PACKAGE_TOKEN }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Set up Node.js and Corepack
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "22"
|
||||
|
||||
- name: Enable Corepack
|
||||
run: |
|
||||
corepack enable
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
yarn install --immutable --inline-builds
|
||||
|
||||
- name: Build packages
|
||||
run: |
|
||||
yarn run build:packages
|
||||
|
||||
- name: Lint source code (eslint)
|
||||
run: |
|
||||
yarn run lint
|
||||
|
||||
- name: Static type checking (TypeScript)
|
||||
run: |
|
||||
yarn run check-types
|
||||
14
README.md
14
README.md
|
|
@ -14,6 +14,12 @@ Containers are built using dedicated `Dockerfile`s located in the `/docker` dire
|
|||
|
||||
A standard single-repository project with a `package.json` file located at the root, managing dependencies for the entire project.
|
||||
|
||||
##### Vars (inherited)
|
||||
|
||||
| Key | Description | Required |
|
||||
| ------------ | --------------- | -------- |
|
||||
| `IMAGE_PATH` | Image base path | ✓ |
|
||||
|
||||
##### Inputs
|
||||
|
||||
| Key | Description | Required |
|
||||
|
|
@ -48,6 +54,14 @@ A monorepo project based on Turborepo, with individual projects located under th
|
|||
| `TURBO_TOKEN` | Access token for turbo cache | |
|
||||
| `FONTAWESOME_PACKAGE_TOKEN` | Fontawesome Pro library token (Only if fa in use ) | |
|
||||
|
||||
##### Vars (inherited)
|
||||
|
||||
| Key | Description | Required |
|
||||
| ----------------- | ------------------ | -------- |
|
||||
| `IMAGE_BASE_PATH` | Image base path | ✓ |
|
||||
| `TURBO_TEAM` | Turbo repo team ID | |
|
||||
| `TURBO_API` | Turbo repo api url | |
|
||||
|
||||
## Authors
|
||||
|
||||
- Thomas Sauter, thomas.sauter@phoenix-technologies.ch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue