test: github secret token (#27453)

* test: github secret token

* use test ui action
This commit is contained in:
骗你是小猫咪 2020-10-30 11:49:40 +08:00 committed by GitHub
parent aa95f58fbf
commit d4a4468789
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
name: test
on: [push, pull_request]
on: [push, pull_request_target]
jobs:
setup:
@ -208,3 +208,25 @@ 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