Skip to content

Commit

Permalink
test: fix lose test script (ant-design#27455)
Browse files Browse the repository at this point in the history
* fix lose test script

* fix action cache not enable pr target

* add ui yml
  • Loading branch information
shaodahong authored Oct 30, 2020
1 parent d4a4468 commit 5669d9c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: test

on: [push, pull_request_target]
on: [push, pull_request]

jobs:
setup:
Expand Down Expand Up @@ -208,25 +208,3 @@ jobs:
env:
LIB_DIR: es
needs: compile

ui:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master

- name: restore cache from package-lock.json
uses: actions/cache@v1
with:
path: package-temp-dir
key: lock-${{ github.sha }}

- name: restore cache from node_modules
uses: actions/cache@v1
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}

- name: test
run: npm run argos -- --token ${{ secrets.ARGOS_TOKEN }} --branch ${GITHUB_REF##*/} --commit ${GITHUB_SHA}
needs: setup
19 changes: 19 additions & 0 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: UI

on: [push, pull_request_target]

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
run: npm run argos -- --token ${{ secrets.ARGOS_TOKEN }} --branch ${GITHUB_REF##*/} --commit ${GITHUB_SHA}

0 comments on commit 5669d9c

Please sign in to comment.