-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: reduce FE e2e ci time #1698
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
444f964
feat: update
LiteSun ae4c306
feat: reduce fe ci time
LiteSun 7978a2d
feat: update CI
LiteSun 3fea5f5
feat: update cache
LiteSun 2d6887c
feat: update
LiteSun 87f6ac6
feat: update
LiteSun cbf4038
fix: lint
LiteSun 20f4f0f
feat: format
LiteSun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Frontend e2e test for plugin | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
env: | ||
CYPRESS_CACHE_FOLDER: cypress/cache | ||
defaults: | ||
run: | ||
working-directory: web | ||
|
||
jobs: | ||
web-e2e: | ||
name: Frontend e2e test | ||
runs-on: ubuntu-latest | ||
services: | ||
etcd: | ||
image: bitnami/etcd:3.4.13 | ||
ports: | ||
- 2379:2379 | ||
- 2380:2380 | ||
env: | ||
ALLOW_NONE_AUTHENTICATION: yes | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v2.1.5 | ||
with: | ||
node-version: 14.x | ||
|
||
- name: Setup golang environment | ||
uses: actions/setup-go@v2.1.3 | ||
with: | ||
go-version: '1.13' | ||
|
||
- name: Start manager-api | ||
working-directory: ./api | ||
run: | | ||
sed -i 's@# - dubbo-proxy@- dubbo-proxy@' ./conf/conf.yaml | ||
nohup go run ./cmd/manager & | ||
|
||
- name: Cache node_modules | ||
uses: actions/cache@v2 | ||
id: yarn-cache | ||
with: | ||
path: '*/node_modules' | ||
key: '${{ runner.os }}-yarn-cache0-${{ hashFiles(''**/yarn.lock'') }}' | ||
restore-keys: | | ||
${{ runner.os }}-yarn-cache0 | ||
|
||
- name: Cache Cypress binary | ||
uses: actions/cache@v2 | ||
id: cypress-binary-cache | ||
with: | ||
path: '*/cypress/cache' | ||
key: cypress-${{ runner.os }}-cypress-cache0-${{ hashFiles('**/package.json') }} | ||
restore-keys: | | ||
cypress-${{ runner.os }}-cypress-cache0 | ||
|
||
- name: Install dependencies | ||
if: steps.yarn-cache.outputs.cache-hit != 'true' | ||
run: yarn | ||
|
||
- name: Start frontend then test | ||
run: yarn test-plugin:e2e | ||
|
||
- name: Archive code coverage results | ||
uses: actions/upload-artifact@v2 | ||
if: always() | ||
with: | ||
name: cypress-report | ||
path: | | ||
web/cypress/videos | ||
web/cypress/screenshots | ||
retention-days: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest of the formatting has been changed. The official documentation for this place uses single quotes, so let's leave it as it is, probably having changed the formatting wrong before.