Files
cocos4/.github/workflows/web-npm_test.yml
T
fish9167 89f51066d0 Change action triggers (#11773)
* [Change] change action event

* [Change] change action event

* [Change] change action event

* Update README.md

* Update README.md

Co-authored-by: jianping.yu <jianping.yu@cocos.com>
2022-06-30 16:05:17 +08:00

37 lines
788 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.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