mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
2210fad6b1
Co-authored-by: jianping.yu <jianping.yu@cocos.com>
37 lines
808 B
YAML
37 lines
808 B
YAML
name: <Web> npm test
|
|
|
|
on: [push, pull_request]
|
|
|
|
# github.head_ref is only defined on pull_request events
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.actor }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
npm_test:
|
|
if:
|
|
(! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration'))
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '12.13'
|
|
|
|
- name: install gulp
|
|
run: |
|
|
npm install -g gulp
|
|
|
|
- name: npm install
|
|
run: |
|
|
npm install
|
|
|
|
- name: build-debug-infos
|
|
run: |
|
|
gulp build-debug-infos
|
|
|
|
- name: run test
|
|
run: |
|
|
npm test
|