From c535953571960f508d0a2668ff003b04ae6b79fa Mon Sep 17 00:00:00 2001 From: this-is-tobi Date: Fri, 5 Jul 2024 23:13:09 +0200 Subject: [PATCH 1/2] docs: :memo: fix documentation --- docs/guide/get-started.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/guide/get-started.md b/docs/guide/get-started.md index b2fde35..86cc371 100644 --- a/docs/guide/get-started.md +++ b/docs/guide/get-started.md @@ -42,9 +42,6 @@ Pour déployer un environnement un guide est disponible [ici](/guide/environment ## Divers -Afin d'accéder à vos images construites via Cloud Pi Native et stockées sur Harbor, un secret, nommé `registry-pull-secret`, est créé automatiquement par la plateforme. - -Un tutoriel est disponible [ici](/guide/tutorials/#acces-aux-images-harbor) - -Un tutoriel est disponible [ici](/guide/tutorials) pour automatiser la synchronisation entre votre dépôt primaire et le dépôt sur la plateforme Cloud Pi Native +- Afin d'accéder à vos images construites via Cloud Pi Native et stockées sur Harbor, un secret, nommé `registry-pull-secret`, est créé automatiquement par la plateforme. +- Un tutoriel est disponible [ici](/guide/tutorials) pour automatiser la synchronisation entre votre dépôt primaire et le dépôt sur la plateforme Cloud Pi Native. From 9d3c1a45ec5b4d3330dac234ccf061e39c44e112 Mon Sep 17 00:00:00 2001 From: this-is-tobi Date: Fri, 5 Jul 2024 23:14:06 +0200 Subject: [PATCH 2/2] ci: :construction_worker: add app build tests in ci --- .github/workflows/test.yml | 67 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..df2524b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,67 @@ +name: Build tests + +on: + pull_request: + types: + - opened + - reopened + - synchronize + - ready_for_review + branches: + - "**" + workflow_dispatch: + inputs: + NODE_VERSION: + description: Nodejs version used to run build tests + required: true + type: string + default: "20" + PNPM_VERSION: + description: Pnpm version used to run build tests + required: true + type: string + default: "9" + +env: + NODE_VERSION: "20" + PNPM_VERSION: "9" + +jobs: + lint: + name: Test app build + runs-on: ubuntu-latest + steps: + - name: Checks-out repository + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + id: pnpm-install + with: + version: "${{ inputs.PNPM_VERSION || env.PNPM_VERSION }}" + run_install: false + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "${{ inputs.NODE_VERSION || env.NODE_VERSION }}" + + - name: Get pnpm store directory + id: pnpm-store + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + + - name: Cache node files + uses: actions/cache@v4 + with: + path: | + ${{ steps.pnpm-store.outputs.STORE_PATH }} + key: node-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + node-${{ runner.os }}-${{ runner.arch }}- + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Test application build + run: pnpm run build