@@ -36,10 +36,10 @@ jobs:
3636 - name : configure mochajs for github
3737 run : |
3838 echo '{"reporter": "mocha-ctrf-json-reporter"}' > ./.mocharc.json
39- - name : core tests
40- run : |
41- cd cables/
42- npm run test
39+ # - name: core tests
40+ # run: |
41+ # cd cables/
42+ # npm run test
4343 - name : checkout api
4444 uses : actions/checkout@v4
4545 with :
@@ -62,82 +62,13 @@ jobs:
6262 npm install --no-save
6363 touch scss/svgicons.scss
6464 npm run build
65- - name : dev/live Tests
66- run : |
67- cd cables_api/
68- npm run test:servers
69- env :
70- CABLES_USER_APIKEY : ${{ secrets.cables_user_apikey }}
71- - name : Publish dev/live Tests Summary Results
72- uses : ctrf-io/github-test-reporter@v1
73- with :
74- report-path : ' ./cables_api/ctrf/*.json'
75- github-report : true
76- summary-delta-report : true
77- insights-report : true
78- flaky-rate-report : true
79- fail-rate-report : true
80- slowest-report : true
81- upload-artifact : true
82- suite-folded-report : true
83- artifact-name : " devlive-report"
84- env :
85- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
86- if : always()
87- - name : checkout electron for exe export
88- uses : actions/checkout@v4
89- with :
90- repository : " cables-gl/cables-exe-export"
91- ref : develop
92- token : ${{ secrets.undev_token }}
93- path : " electron"
94- fetch-depth : 0
95- - name : create exe-export LFS file list
96- run : |
97- cd electron/
98- git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
99- - name : restore exe-export LFS cache
100- uses : actions/cache@v4
101- id : exe-export-lfs-cache
102- with :
103- path : electron/.git/lfs
104- key : ${{ runner.os }}-lfs-${{ hashFiles('electron/.lfs-assets-id') }}-v1
105- - name : pull exe-export LFS files
106- run : |
107- cd electron/
108- git lfs pull
109- - name : Export Tests
110- run : |
111- cd cables_api/
112- npm run test:export
113- - name : Publish Export Tests Summary Results
114- uses : ctrf-io/github-test-reporter@v1
115- with :
116- report-path : ' ./cables_api/ctrf/*.json'
117- github-report : true
118- summary-delta-report : true
119- insights-report : true
120- flaky-rate-report : true
121- fail-rate-report : true
122- slowest-report : true
123- upload-artifact : true
124- suite-folded-report : true
125- artifact-name : " export-report"
126- env :
127- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
128- if : always()
129- # - name: Install PM2 locally
130- # run: npm install pm2@6.0.13 -g
131- # - name: API Tests
65+ # - name: dev/live Tests
13266 # run: |
133- # npm run pm2:test
134- # pm2 status
13567 # cd cables_api/
136- # npm run test:api
137- # pm2 logs --lines 100
138- # pm2 stop all
139- # pm2 flush
140- # - name: Publish API Tests Summary Results
68+ # npm run test:servers
69+ # env:
70+ # CABLES_USER_APIKEY: ${{ secrets.cables_user_apikey }}
71+ # - name: Publish dev/live Tests Summary Results
14172 # uses: ctrf-io/github-test-reporter@v1
14273 # with:
14374 # report-path: './cables_api/ctrf/*.json'
@@ -149,17 +80,37 @@ jobs:
14980 # slowest-report: true
15081 # upload-artifact: true
15182 # suite-folded-report: true
152- # artifact-name: "api-report"
153- # - name: Views Tests
83+ # artifact-name: "devlive-report"
84+ # env:
85+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+ # if: always()
87+ # - name: checkout electron for exe export
88+ # uses: actions/checkout@v4
89+ # with:
90+ # repository: "cables-gl/cables-exe-export"
91+ # ref: develop
92+ # token: ${{ secrets.undev_token }}
93+ # path: "electron"
94+ # fetch-depth: 0
95+ # - name: create exe-export LFS file list
96+ # run: |
97+ # cd electron/
98+ # git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
99+ # - name: restore exe-export LFS cache
100+ # uses: actions/cache@v4
101+ # id: exe-export-lfs-cache
102+ # with:
103+ # path: electron/.git/lfs
104+ # key: ${{ runner.os }}-lfs-${{ hashFiles('electron/.lfs-assets-id') }}-v1
105+ # - name: pull exe-export LFS files
106+ # run: |
107+ # cd electron/
108+ # git lfs pull
109+ # - name: Export Tests
154110 # run: |
155- # npm run pm2:test
156- # pm2 status
157111 # cd cables_api/
158- # npm run test:views
159- # pm2 logs --lines 100
160- # pm2 stop all
161- # pm2 flush
162- # - name: Publish Views Tests Summary Results
112+ # npm run test:export
113+ # - name: Publish Export Tests Summary Results
163114 # uses: ctrf-io/github-test-reporter@v1
164115 # with:
165116 # report-path: './cables_api/ctrf/*.json'
@@ -171,5 +122,53 @@ jobs:
171122 # slowest-report: true
172123 # upload-artifact: true
173124 # suite-folded-report: true
174- # artifact-name: "views-report"
175- #
125+ # artifact-name: "export-report"
126+ # env:
127+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
128+ # if: always()
129+ - name : Install PM2 locally
130+ run : npm install pm2@6.0.13 -g
131+ - name : API Tests
132+ run : |
133+ npm run pm2:test
134+ pm2 status
135+ cd cables_api/
136+ npm run test:api
137+ pm2 logs --lines 100
138+ pm2 stop all
139+ pm2 flush
140+ - name : Publish API Tests Summary Results
141+ uses : ctrf-io/github-test-reporter@v1
142+ with :
143+ report-path : ' ./cables_api/ctrf/*.json'
144+ github-report : true
145+ summary-delta-report : true
146+ insights-report : true
147+ flaky-rate-report : true
148+ fail-rate-report : true
149+ slowest-report : true
150+ upload-artifact : true
151+ suite-folded-report : true
152+ artifact-name : " api-report"
153+ - name : Views Tests
154+ run : |
155+ npm run pm2:test
156+ pm2 status
157+ cd cables_api/
158+ npm run test:views
159+ pm2 logs --lines 100
160+ pm2 stop all
161+ pm2 flush
162+ - name : Publish Views Tests Summary Results
163+ uses : ctrf-io/github-test-reporter@v1
164+ with :
165+ report-path : ' ./cables_api/ctrf/*.json'
166+ github-report : true
167+ summary-delta-report : true
168+ insights-report : true
169+ flaky-rate-report : true
170+ fail-rate-report : true
171+ slowest-report : true
172+ upload-artifact : true
173+ suite-folded-report : true
174+ artifact-name : " views-report"
0 commit comments