Browse Source
* 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 commentpull/24463/head
骗你是小猫咪
5 years ago
committed by
GitHub
13 changed files with 158 additions and 83 deletions
@ -0,0 +1 @@ |
|||||
|
node_modules/ |
@ -1,31 +0,0 @@ |
|||||
name: UI-TEST |
|
||||
|
|
||||
on: |
|
||||
issue_comment: |
|
||||
types: [created] |
|
||||
|
|
||||
jobs: |
|
||||
ui: |
|
||||
runs-on: ubuntu-latest |
|
||||
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/ui') |
|
||||
steps: |
|
||||
- name: checkout |
|
||||
uses: actions/checkout@master |
|
||||
|
|
||||
- name: install |
|
||||
run: npm install |
|
||||
|
|
||||
- name: dist |
|
||||
run: npm run dist |
|
||||
|
|
||||
- name: test |
|
||||
run: npm run test:image |
|
||||
|
|
||||
- name: VERCEL Now Deployment |
|
||||
uses: amondnet/now-deployment@v2.0.3 |
|
||||
with: |
|
||||
zeit-token: ${{ secrets.VERCEL_TOKEN }} |
|
||||
now-project-id: ${{ secrets.VERCEL_PROJECT_ID}} |
|
||||
now-org-id: ${{ secrets.VERCEL_ORG_ID}} |
|
||||
working-directory: ./jest-stare |
|
||||
if: failure() |
|
@ -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 . . |
After Width: | Height: | Size: 6.7 KiB |
@ -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> |
||||
|
</>, |
||||
|
); |
||||
|
}); |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 6.7 KiB |
@ -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" |
Loading…
Reference in new issue