Skip to content

Commit

Permalink
test: reduce fe ci time (#2557)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiteSun authored Aug 3, 2022
1 parent d67a5a3 commit adcd2e3
Show file tree
Hide file tree
Showing 24 changed files with 10 additions and 101 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/frontend-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ defaults:
jobs:
web-e2e:
name: Frontend e2e test
strategy:
fail-fast: false
matrix:
folderPrefix: ['consumer', 'route', 'plugin', 'rest']
runs-on: ubuntu-latest
services:
etcd:
Expand Down Expand Up @@ -63,8 +67,10 @@ jobs:
${{ runner.os }}-go-
- name: Start manager-api
working-directory: ./api
working-directory: ./
run: |
make dag-lib
cd api
sed -i 's@# - dubbo-proxy@- dubbo-proxy@' ./conf/conf.yaml
nohup go run ./main.go &
Expand All @@ -82,8 +88,7 @@ jobs:

- name: Start frontend then test
run: |
rm -rf cypress/integration/plugin
yarn test:e2e
yarn start-server-and-test 'cross-env SERVE_ENV=test yarn start' http-get://localhost:8000 'cross-env CYPRESS_SERVE_ENV=test yarn cypress run --spec "**/integration/${{matrix.folderPrefix}}/**.spec.js"'
- name: Report e2e coverage
run: npx nyc report --reporter=text-summary
Expand All @@ -96,7 +101,7 @@ jobs:
uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-report
name: cypress-report-${{matrix.folderPrefix}}
path: |
web/cypress/videos
web/cypress/screenshots
Expand Down
96 changes: 0 additions & 96 deletions .github/workflows/frontend-plugin-e2e-test.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/
/* eslint-disable no-undef */
import defaultSettings from '../../../config/defaultSettings';
import defaultSettings from '../../../../../config/defaultSettings';

context('Save Paginator Status', () => {
const timeout = 300;
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit adcd2e3

Please sign in to comment.