2020-10-30 13:18:20 +08:00
|
|
|
name: UI
|
|
|
|
|
2020-10-30 17:13:25 +08:00
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-10-30 13:18:20 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: install
|
|
|
|
run: npm install
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
run: npm run test-image
|
|
|
|
|
|
|
|
- name: argos-ci
|
2020-10-30 15:29:23 +08:00
|
|
|
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 }}
|