test: fix lose test script (#27455)

* fix lose test script

* fix action cache not enable pr target

* add ui yml
This commit is contained in:
骗你是小猫咪 2020-10-30 13:18:20 +08:00 committed by GitHub
parent d4a4468789
commit 5669d9c65a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 23 deletions

View File

@ -1,6 +1,6 @@
name: test
on: [push, pull_request_target]
on: [push, pull_request]
jobs:
setup:
@ -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
.github/workflows/ui.yml vendored Normal file
View File

@ -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}