From eb656dbab6b59108237505a954e4a18916f8fb9c Mon Sep 17 00:00:00 2001 From: Thomas Sauter Date: Wed, 22 Oct 2025 21:11:52 +0200 Subject: [PATCH] upate --- .github/workflows/build-monorepo.yaml | 6 ++-- .github/workflows/build-standalone.yaml | 5 ++- .github/workflows/lint-monorepo.yaml | 45 +++++++++++++++++++++++++ README.md | 14 ++++++++ 4 files changed, 64 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/lint-monorepo.yaml diff --git a/.github/workflows/build-monorepo.yaml b/.github/workflows/build-monorepo.yaml index 6e03f12..64a0851 100644 --- a/.github/workflows/build-monorepo.yaml +++ b/.github/workflows/build-monorepo.yaml @@ -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 diff --git a/.github/workflows/build-standalone.yaml b/.github/workflows/build-standalone.yaml index 44e38b3..5b113f3 100644 --- a/.github/workflows/build-standalone.yaml +++ b/.github/workflows/build-standalone.yaml @@ -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 diff --git a/.github/workflows/lint-monorepo.yaml b/.github/workflows/lint-monorepo.yaml new file mode 100644 index 0000000..9c936fc --- /dev/null +++ b/.github/workflows/lint-monorepo.yaml @@ -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 diff --git a/README.md b/README.md index 2f5e0b8..b74d3f5 100644 --- a/README.md +++ b/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