@starci/hfs 4.5.0 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/ci/cli.mjs +6 -4
- package/ci/vars.mjs +22 -5
- package/ci/verify.mjs +16 -2
- package/lint/run.mjs +3 -4
- package/package.json +1 -1
- package/release/ci-red.mjs +44 -12
- package/release/gate.mjs +50 -19
- package/release/push.mjs +1 -1
- package/runtime/knowledge/hfs/canon-pins.yaml +5 -5
- package/runtime/knowledge/sonar-gate.yaml +2 -2
- package/runtime/modules/schemas/application-stacks.schema.yaml +35 -0
- package/runtime/packages/cli/src/catalog.generated.mjs +9 -7
- package/runtime/scripts/hfs/ci-declaration.mjs +12 -3
- package/runtime/scripts/hfs/rules/secrets.mjs +8 -10
- package/runtime/scripts/lib/secret-patterns.mjs +77 -0
- package/scaffold/app.mjs +2 -2
- package/sync/ci-commands.mjs +154 -14
- package/sync/hygiene.mjs +4 -1
- package/sync/index.mjs +16 -12
- package/sync/quality-services.mjs +7 -5
- package/sync/readme-badges.mjs +18 -2
- package/sync/stack-images.mjs +5 -0
- package/templates/app/ci-workflows/github/workflows/ci.yml +9 -3
- package/templates/app/ci-workflows/github/workflows/e2e.yml +1 -0
- package/templates/app/ci-workflows/github/workflows/images.yml +1 -0
- package/templates/app/ci-workflows/install-steps.yml +2 -0
- package/templates/app/ci-workflows/jest-cache.yml +8 -0
- package/templates/app/ci-workflows/lint-base.yml +16 -0
- package/templates/app/ci-workflows-lite/github/workflows/ci.yml +10 -4
- package/templates/app/ci-workflows-lite/github/workflows/db-deploy.yml +1 -0
- package/templates/app/ci-workflows-lite/github/workflows/images.yml +1 -0
- package/templates/app/gitignore +2 -0
- package/templates/app/gitignore-lite +2 -0
- package/templates/app/skeleton/.github/dependabot.yml +1 -2
- package/templates/app/skeleton/.starcistacks/application-stacks.yaml +1 -0
- package/templates/app/skeleton-lite/.github/dependabot.yml +1 -2
- package/templates/app/skeleton-lite/.starcistacks/application-stacks.yaml +1 -0
- package/templates/app/upgrade-full/.starcistacks/application-stacks.yaml +1 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
- name: Jest cache
|
|
2
|
+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
|
3
|
+
with:
|
|
4
|
+
path: .jest-cache
|
|
5
|
+
key: ${{ runner.os }}-node{{nodeMajor}}-jest-${{ hashFiles('package-lock.json') }}-${{ github.sha }}
|
|
6
|
+
restore-keys: |
|
|
7
|
+
${{ runner.os }}-node{{nodeMajor}}-jest-${{ hashFiles('package-lock.json') }}-
|
|
8
|
+
${{ runner.os }}-node{{nodeMajor}}-jest-
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
- name: lint baseline
|
|
2
|
+
shell: bash
|
|
3
|
+
env:
|
|
4
|
+
BASE_BRANCH: ${{ github.base_ref }}
|
|
5
|
+
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
|
|
6
|
+
BEFORE: ${{ github.event.before }}
|
|
7
|
+
run: |
|
|
8
|
+
base="origin/$DEFAULT_BRANCH"
|
|
9
|
+
if [[ "$GITHUB_EVENT_NAME" == pull_request ]]; then
|
|
10
|
+
base="origin/$BASE_BRANCH"
|
|
11
|
+
elif [[ "$GITHUB_REF" == refs/tags/* ]]; then
|
|
12
|
+
base=$(git describe --tags --abbrev=0 "$GITHUB_REF^" 2>/dev/null) || base="origin/$DEFAULT_BRANCH"
|
|
13
|
+
elif [[ "$GITHUB_EVENT_NAME" == push && -n "$BEFORE" && ! "$BEFORE" =~ ^0+$ ]]; then
|
|
14
|
+
base="$BEFORE"
|
|
15
|
+
fi
|
|
16
|
+
echo "STARCI_BASE_REF=$base" >> "$GITHUB_ENV"
|
|
@@ -16,10 +16,12 @@ concurrency:
|
|
|
16
16
|
|
|
17
17
|
jobs:
|
|
18
18
|
fast:
|
|
19
|
+
timeout-minutes: 20
|
|
19
20
|
runs-on: ubuntu-latest
|
|
20
21
|
{{sonarEnv}}
|
|
21
22
|
steps:
|
|
22
23
|
{{> app/ci-workflows/install-steps.yml}}
|
|
24
|
+
{{> app/ci-workflows/lint-base.yml}}
|
|
23
25
|
- name: production dependency audit
|
|
24
26
|
run: {{auditCommand}}
|
|
25
27
|
{{ciLintSteps}}
|
|
@@ -29,6 +31,7 @@ jobs:
|
|
|
29
31
|
run: npm run typecheck
|
|
30
32
|
|
|
31
33
|
test:
|
|
34
|
+
timeout-minutes: 45
|
|
32
35
|
runs-on: ubuntu-latest
|
|
33
36
|
# Codecov OIDC authentication requires a job-scoped identity token.
|
|
34
37
|
permissions:
|
|
@@ -36,10 +39,13 @@ jobs:
|
|
|
36
39
|
id-token: write
|
|
37
40
|
steps:
|
|
38
41
|
{{> app/ci-workflows/install-steps.yml}}
|
|
42
|
+
{{> app/ci-workflows/jest-cache.yml}}
|
|
39
43
|
- name: unit
|
|
40
|
-
run: npm test -- --ci
|
|
44
|
+
run: npm test -- --ci --forceExit --cacheDirectory .jest-cache
|
|
41
45
|
- name: coverage proof
|
|
42
46
|
run: {{ciCoverageProof}}
|
|
47
|
+
env:
|
|
48
|
+
NODE_OPTIONS: --max-old-space-size=6144
|
|
43
49
|
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
44
50
|
if: always() && hashFiles('{{lcovReport}}') != ''
|
|
45
51
|
with:
|
|
@@ -48,19 +54,19 @@ jobs:
|
|
|
48
54
|
{{codecovSteps}}
|
|
49
55
|
|
|
50
56
|
build:
|
|
57
|
+
timeout-minutes: 30
|
|
51
58
|
runs-on: ubuntu-latest
|
|
52
59
|
steps:
|
|
53
60
|
{{> app/ci-workflows/install-steps.yml}}
|
|
54
61
|
- name: build be
|
|
55
62
|
run: npm run build:be
|
|
56
|
-
|
|
57
|
-
run: npm run build:fe
|
|
63
|
+
{{ciBuildSteps}}
|
|
58
64
|
- name: database migration checks
|
|
59
65
|
run: {{ciDatabaseLint}}
|
|
60
66
|
|
|
61
67
|
{{sonarJob}}
|
|
62
|
-
|
|
63
68
|
db-types:
|
|
69
|
+
timeout-minutes: 30
|
|
64
70
|
runs-on: ubuntu-latest
|
|
65
71
|
steps:
|
|
66
72
|
{{> app/ci-workflows/install-steps.yml}}
|
package/templates/app/gitignore
CHANGED