mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
3f126f116f
* test: skip tree virtual-scroll render * test: remove branches-ignore, and use head ref to fix when merged
36 lines
967 B
YAML
36 lines
967 B
YAML
name: UI
|
|
|
|
on:
|
|
pull_request_target:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
if: github.event_name == 'pull_request_target'
|
|
uses: actions/checkout@master
|
|
with:
|
|
ref: refs/pull/${{ github.event.pull_request.number }}/head
|
|
|
|
- name: checkout
|
|
if: github.event_name == 'push'
|
|
uses: actions/checkout@master
|
|
|
|
- name: install
|
|
run: npm install
|
|
|
|
- name: test
|
|
run: npm run test-image
|
|
|
|
- name: argos-ci
|
|
if: github.event_name == 'pull_request_target'
|
|
run: npm run argos -- --token ${{ secrets.ARGOS_TOKEN }} --branch pull/${{ github.event.pull_request.number }}/merge --commit ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: argos-ci
|
|
if: github.event_name == 'push'
|
|
run: npm run argos -- --token ${{ secrets.ARGOS_TOKEN }} --branch ${GITHUB_REF##*/} --commit ${{ github.sha }}
|