@@ -14,15 +14,18 @@ jobs:
1414 DEFAULT_TARGET : ' test:node'
1515 steps :
1616 - uses : actions/checkout@v6
17+ with :
18+ fetch-depth : 0
19+ persist-credentials : false
1720 - uses : actions/setup-node@v6
1821 with :
1922 node-version : ' 24'
2023 cache : ' npm'
21- - run : npm ci
24+ - run : npm ci --ignore-scripts
2225 - run : npm run ${{ matrix.target }}
2326 - name : SonarCloud Scan
24- uses : SonarSource/sonarqube-scan-action@v7
25- if : ${{ matrix.target == env.DEFAULT_TARGET }}
27+ uses : SonarSource/sonarqube-scan-action@59db25f34e16620e48ab4bb9e4a5dce155cb5432 # v8.0.0
28+ if : ${{ matrix.target == env.DEFAULT_TARGET && env.SONAR_TOKEN != null }}
2629 env :
2730 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2831 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
@@ -40,21 +43,42 @@ jobs:
4043 name : Node ${{ matrix.node }} integration test
4144 steps :
4245 - uses : actions/checkout@v6
46+ with :
47+ persist-credentials : false
4348 - name : Setup node ${{ matrix.node }}
4449 uses : actions/setup-node@v6
4550 with :
4651 node-version : ${{ matrix.node }}
4752 cache : ' npm'
48- - run : npm ci
53+ - run : npm ci --ignore-scripts
4954 - name : Run audit
5055 if : ${{ matrix.node == env.DEFAULT_NODE_VERSION }}
5156 run : npm run audit
5257 - run : npm run itest:dom
5358
54- build :
59+ trace-requirements :
5560 runs-on : ubuntu-latest
5661 permissions :
5762 contents : read
58- needs : [distributed-tasks, integration-test-node]
63+ strategy :
64+ fail-fast : false
65+ name : Trace requirements
66+ steps :
67+ - uses : actions/checkout@v6
68+ with :
69+ persist-credentials : false
70+ - name : Cache OFT JARs
71+ uses : actions/cache@v5
72+ with :
73+ path : ~/.m2/repository/
74+ key : oft-${{ hashFiles('.github/workflows/oftw.sh') }}
75+ restore-keys : oft
76+ - run : ./.github/workflows/oft-trace.sh
77+
78+ build :
79+ runs-on : ubuntu-slim
80+ permissions :
81+ contents : read
82+ needs : [distributed-tasks, integration-test-node, trace-requirements]
5983 steps :
6084 - run : echo "All checks passed, build successful!"
0 commit comments