Skip to content

Commit

Permalink
Merge pull request #1048 from cloud-pi-native/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
this-is-tobi authored Apr 24, 2024
2 parents b8e69cc + 09949ab commit 8e7bc35
Show file tree
Hide file tree
Showing 277 changed files with 11,674 additions and 12,260 deletions.
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG-REPORT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,16 @@ body:
placeholder: "v1.2.3"
validations:
required: false

- type: checkboxes
id: dod
attributes:
label: "Définition du fini"
description: Cochez les différents élément de la Definition Of Done.
options:
- label: Le correctif est terminé
required: false
- label: Les tests liés à ce correctif ont été ajoutés
required: false
- label: La communication avec les autres équipes impliquées par ce correctif a été faite
required: false
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,18 @@ body:
placeholder: Une description technique de la fonctionnalité.
validations:
required: false

- type: checkboxes
id: dod
attributes:
label: "Définition du fini"
description: Cochez les différents élément de la Definition Of Done.
options:
- label: La fonctionnalité est terminée
required: false
- label: Les tests liés à cette fonctionnalité ont été ajoutés
required: false
- label: La documentation liée à cette fonctionnalité a été ajoutée (cf. https://github.com/cloud-pi-native/documentation)
required: false
- label: La communication avec les autres équipes impliquées par cette fonctionnalité a été faite
required: false
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ env:
NAMESPACE: "${{ github.repository }}"
MULTI_ARCH: true
USE_QEMU: false
NODE_VERSION: "20.11.0"
PNPM_VERSION: "8"
NODE_VERSION: "20.12.2"
PNPM_VERSION: "9"

jobs:
expose-vars:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:
workflow_dispatch:

env:
NODE_VERSION: "20.11.0"
PNPM_VERSION: "8"
NODE_VERSION: "20.12.2"
PNPM_VERSION: "9"
REGISTRY: "ghcr.io"
NAMESPACE: "${{ github.repository }}"
MULTI_ARCH: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ on:
description: Nodejs version used to run tests
required: true
type: string
default: "20.11.0"
default: "20.12.2"
PNPM_VERSION:
description: Pnpm version used to run tests
required: true
type: string
default: "8"
default: "9"

jobs:
lint:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ on:
description: Nodejs version used
required: true
type: string
default: "20.11.0"
default: "20.12.2"
PNPM_VERSION:
description: Pnpm version used
required: true
type: string
default: "8"
default: "9"
PUBLISH_APPS:
description: Publish apps modules
required: true
Expand Down
23 changes: 21 additions & 2 deletions .github/workflows/tests-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ on:
description: Nodejs version used to run tests
required: true
type: string
default: "20.11.0"
default: "20.12.2"
PNPM_VERSION:
description: Pnpm version used to run tests
required: true
type: string
default: "8"
default: "9"
BROWSERS:
description: Comma separeted browser list to run tests on (Options are 'electron', 'chrome', 'edge', 'firefox')
required: false
Expand Down Expand Up @@ -94,11 +94,30 @@ jobs:
restore-keys: |
node-${{ runner.os }}-${{ runner.arch }}-
- name: Get turbo cache directories
id: turbo-cache
run: |
TURBO_CACHE_PATHS=""
for pkg in $(find ./apps ./packages ./plugins -type d -mindepth 1 -maxdepth 1 -not -path "**/node_modules"); do
if [ -z "$TURBO_CACHE_PATHS" ]; then
TURBO_CACHE_PATHS="$pkg/dist
$pkg/types"
else
TURBO_CACHE_PATHS="$TURBO_CACHE_PATHS
$pkg/dist
$pkg/types"
fi
done
echo "TURBO_CACHE_PATHS<<EOF" >> $GITHUB_OUTPUT
echo "$TURBO_CACHE_PATHS" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Cache turbo files
uses: actions/cache@v4
with:
path: |
./.turbo/cache
${{ steps.turbo-cache.outputs.TURBO_CACHE_PATHS }}
key: turbo-component-${{ runner.os }}-${{ runner.arch }}-${{ matrix.browsers }}-${{ hashFiles('apps/**/src/**','apps/client/cypress/**','packages/**/src/**','plugins/**/src/**') }}
restore-keys: |
turbo-component-${{ runner.os }}-${{ runner.arch }}-${{ matrix.browsers }}-
Expand Down
23 changes: 21 additions & 2 deletions .github/workflows/tests-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ on:
description: Nodejs version used to run tests
required: true
type: string
default: "20.11.0"
default: "20.12.2"
PNPM_VERSION:
description: Pnpm version used to run tests
required: true
type: string
default: "8"
default: "9"
TAG:
description: Image tag used to run tests
required: true
Expand Down Expand Up @@ -102,11 +102,30 @@ jobs:
restore-keys: |
node-${{ runner.os }}-${{ runner.arch }}-
- name: Get turbo cache directories
id: turbo-cache
run: |
TURBO_CACHE_PATHS=""
for pkg in $(find ./apps ./packages ./plugins -type d -mindepth 1 -maxdepth 1 -not -path "**/node_modules"); do
if [ -z "$TURBO_CACHE_PATHS" ]; then
TURBO_CACHE_PATHS="$pkg/dist
$pkg/types"
else
TURBO_CACHE_PATHS="$TURBO_CACHE_PATHS
$pkg/dist
$pkg/types"
fi
done
echo "TURBO_CACHE_PATHS<<EOF" >> $GITHUB_OUTPUT
echo "$TURBO_CACHE_PATHS" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Cache turbo files
uses: actions/cache@v4
with:
path: |
./.turbo/cache
${{ steps.turbo-cache.outputs.TURBO_CACHE_PATHS }}
key: turbo-e2e-${{ runner.os }}-${{ runner.arch }}-${{ matrix.browsers }}-${{ hashFiles('apps/**/src/**','apps/client/cypress/**','packages/**/src/**','plugins/**/src/**') }}
restore-keys: |
turbo-e2e-${{ runner.os }}-${{ runner.arch }}-${{ matrix.browsers }}-
Expand Down
35 changes: 28 additions & 7 deletions .github/workflows/tests-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,19 @@ on:
description: Nodejs version used to run tests
required: true
type: string
default: "20.11.0"
default: "20.12.2"
PNPM_VERSION:
description: Pnpm version used to run tests
required: true
type: string
default: "8"
default: "9"

jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
outputs:
turbo-cache: ${{ steps.turbo-cache.outputs.TURBO_CACHE_PATHS }}
steps:
- name: Checks-out repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -63,13 +65,32 @@ jobs:
restore-keys: |
node-${{ runner.os }}-${{ runner.arch }}-
- name: Get turbo cache directories
id: turbo-cache
run: |
TURBO_CACHE_PATHS=""
for pkg in $(find ./apps ./packages ./plugins -type d -mindepth 1 -maxdepth 1 -not -path "**/node_modules"); do
if [ -z "$TURBO_CACHE_PATHS" ]; then
TURBO_CACHE_PATHS="$pkg/dist
$pkg/types
$pkg/coverage"
else
TURBO_CACHE_PATHS="$TURBO_CACHE_PATHS
$pkg/dist
$pkg/types
$pkg/coverage"
fi
done
echo "TURBO_CACHE_PATHS<<EOF" >> $GITHUB_OUTPUT
echo "$TURBO_CACHE_PATHS" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Cache turbo files
uses: actions/cache@v4
with:
path: |
./.turbo/cache
./apps/**/coverage
./packages/**/coverage
${{ steps.turbo-cache.outputs.TURBO_CACHE_PATHS }}
key: turbo-unit-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('apps/**/src/**','packages/**/src/**','plugins/**/src/**') }}
restore-keys: |
turbo-unit-${{ runner.os }}-${{ runner.arch }}-
Expand Down Expand Up @@ -112,6 +133,7 @@ jobs:
name: Run code quality analysis
runs-on: ubuntu-latest
needs:
- unit-tests
- check-secrets
if: ${{ needs.check-secrets.outputs.run-scan == 'true' }}
steps:
Expand Down Expand Up @@ -157,9 +179,8 @@ jobs:
with:
path: |
./.turbo/cache
./apps/**/coverage
./packages/**/coverage
key: turbo-unit-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('apps/**/src/**','packages/**/src/**') }}
${{ needs.unit-tests.outputs.turbo-cache }}
key: turbo-unit-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('apps/**/src/**','packages/**/src/**','plugins/**/src/**') }}
restore-keys: |
turbo-unit-${{ runner.os }}-${{ runner.arch }}-
Expand Down
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
3 changes: 0 additions & 3 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run test
Loading

0 comments on commit 8e7bc35

Please sign in to comment.