forked from ant-design/ant-design
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: use azure deploy ui test report site (ant-design#24327)
* test: use azure deploy ui test report site * parallel stage * continueOnError * fix continueOnError position * use github comment * failed * fix artifact name * add download path * ls files * fix path download * Install modules * update snapshot image * test: docker compose run test image * use docker * use docker update snapshots * remove unused dep * improve github comment and add doc * fix azure script * test faild condition * improve pass comment
- Loading branch information
1 parent
0cea623
commit 21bd944
Showing
13 changed files
with
158 additions
and
83 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
FROM buildkite/puppeteer:latest | ||
RUN mkdir /app | ||
WORKDIR /app | ||
COPY package.json ./ | ||
RUN npm install | ||
ENV PATH="${PATH}:/app/node_modules/.bin" | ||
COPY . . |
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
Binary file added
BIN
+6.74 KB
...js-button-image-image-test-component-image-screenshot-should-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,14 @@ | ||
import React from 'react'; | ||
import Button from '..'; | ||
import imageTest from '../../../tests/shared/imageTest'; | ||
|
||
describe('Button image', () => { | ||
imageTest( | ||
<> | ||
<Button type="primary">Primary</Button> | ||
<Button>Default</Button> | ||
<Button type="dashed">Dashed</Button> | ||
<Button type="link">Link</Button> | ||
</>, | ||
); | ||
}); |
Binary file modified
BIN
-3.53 KB
(66%)
...t-js-grid-image-image-test-component-image-screenshot-should-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,12 @@ | ||
version: '3' | ||
services: | ||
tests: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.ui-test | ||
volumes: | ||
- './components:/app/components' | ||
- './tests:/app/tests' | ||
- './jest-stare:/app/jest-stare' | ||
- './dist:/app/dist' | ||
entrypoint: "jest --config .jest.image.js --no-cache" |
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
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 |
---|---|---|
|
@@ -57,6 +57,7 @@ | |
"presite": "npm run version", | ||
"color-less": "node ./scripts/generate-color-less", | ||
"compile": "antd-tools run compile", | ||
"compile:less": "antd-tools run compile:less", | ||
"changelog": "node ./scripts/print-changelog", | ||
"predeploy": "antd-tools run clean && npm run site && cp CNAME _site && cp -r .circleci/ .github/ _site && npm run site:test", | ||
"deploy": "bisheng gh-pages --push-only --dotfiles", | ||
|
@@ -88,7 +89,7 @@ | |
"test-node": "jest --config .jest.node.js --no-cache", | ||
"tsc": "tsc --noEmit", | ||
"site:test": "jest --config .jest.site.js --cache=false", | ||
"test:image": "npm install [email protected] --no-save && jest --config .jest.image.js --no-cache", | ||
"test-image": "npm run compile:less && docker-compose run tests", | ||
"version": "node ./scripts/generate-version" | ||
}, | ||
"husky": { | ||
|
@@ -152,7 +153,7 @@ | |
"@ant-design/bisheng-plugin": "^2.3.0", | ||
"@ant-design/colors": "^4.0.0", | ||
"@ant-design/hitu": "^0.0.0-alpha.13", | ||
"@ant-design/tools": "^8.2.0", | ||
"@ant-design/tools": "^9.0.0", | ||
"@bundle-analyzer/webpack-plugin": "^0.5.1", | ||
"@qixian.cs/github-contributors-list": "^1.0.3", | ||
"@stackblitz/sdk": "^1.3.0", | ||
|
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