Add a test

This commit is contained in:
Sodbileg Gansukh 2021-01-11 11:31:12 +08:00
parent b0f784f643
commit a716fe0baa
2 changed files with 17 additions and 0 deletions

15
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: Test
on:
pull_request:
push:
branches:
- master
- 'renovate/*'
jobs:
test:
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
steps:
- uses: actions/checkout@v2
- run: yarn
- run: yarn test:ci

View File

@ -43,6 +43,7 @@
"scripts": {
"dev": "gulp",
"test": "gscan .",
"test:ci": "gscan --fatal --verbose .",
"lint": "gulp lint",
"zip": "gulp zip"
},
@ -50,6 +51,7 @@
"autoprefixer": "9.8.6",
"beeper": "2.0.0",
"cssnano": "4.1.10",
"gscan": "^3.6.1",
"gulp": "4.0.2",
"gulp-concat": "2.6.1",
"gulp-livereload": "4.0.2",