File tree Expand file tree Collapse file tree 4 files changed +31
-12
lines changed
Expand file tree Collapse file tree 4 files changed +31
-12
lines changed Original file line number Diff line number Diff line change 1+ name : frontend-ci
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ - name : Extract versions from pom.xml
15+ id : extract_versions
16+ run : |
17+ NODE_VERSION=$(xmllint --xpath 'string(//properties/node.version)' pom.xml)
18+ NPM_VERSION=$(xmllint --xpath 'string(//properties/npm.version)' pom.xml)
19+ echo "NODE_VERSION=$NODE_VERSION" >> "$GITHUB_ENV"
20+ echo "NPM_VERSION=$NPM_VERSION" >> "$GITHUB_ENV"
21+ - uses : actions/setup-node@v4
22+ with :
23+ node-version : ' ${{ env.NODE_VERSION }}'
24+ cache : ' npm'
25+ - run : npm install --global 'npm@${{ env.NPM_VERSION }}'
26+ - run : npm ci
27+ - run : npm run lint
28+ - run : npm run build
29+ - run : npm test
Original file line number Diff line number Diff line change 11{
22 "name" : " pipeline-graph-view-plugin" ,
3- "version" : " 1 .0.0" ,
3+ "version" : " 0 .0.0-development " ,
44 "description" : " Pipeline Graph visualization for Jenkins pipelines" ,
55 "private" : true ,
66 "type" : " module" ,
77 "scripts" : {
88 "mvnbuild" : " npm run build" ,
9- "mvntest" : " npm test" ,
109 "build" : " vite build --mode production" ,
1110 "build:dev" : " vite build --mode development --watch" ,
1211 "lint" : " tsc && eslint && prettier --check ." ,
1312 "lint:fix" : " eslint --fix && prettier --write ." ,
14- "test" : " vitest --watch=false --reporter default --reporter junit && npm run lint " ,
13+ "test" : " vitest --watch=false" ,
1514 "test:dev" : " vitest --watch"
1615 },
1716 "repository" : {
Original file line number Diff line number Diff line change 3838 <node .version>22.15.0</node .version>
3939 <npm .version>11.3.0</npm .version>
4040 <spotless .check.skip>false</spotless .check.skip>
41-
42- <!-- Opt in to Jenkins handling eslint results -->
43- <maven .test.failure.ignore>false</maven .test.failure.ignore>
44- <frontend .testFailureIgnore>${maven.test.failure.ignore} </frontend .testFailureIgnore>
4541 </properties >
4642
4743 <dependencyManagement >
Original file line number Diff line number Diff line change 11import { defineConfig } from "vitest/config" ;
2- import path from "node:path" ;
32
43export default defineConfig ( {
54 test : {
65 root : "src/main/frontend" ,
76 globals : true ,
87 environment : "jsdom" ,
98 setupFiles : [ "setupTests.ts" ] ,
10- outputFile : path . resolve (
11- import . meta. dirname ,
12- "target/surefire-reports/vitest-junit.xml" ,
13- ) ,
149 } ,
1510} ) ;
You can’t perform that action at this time.
0 commit comments