This commit is contained in:
Pig Fang 2019-09-15 14:46:21 +08:00
parent 4a9af2d5df
commit f51e2d7b9d
3 changed files with 5 additions and 13 deletions

View File

@ -17,7 +17,6 @@ jobs:
- node_modules
- ~/.yarn
key: v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn lint
- run: yarn test --coverage -w=2
- run: yarn codecov

View File

@ -4,27 +4,20 @@ on: [push]
jobs:
php73:
name: PHP 7.3
name: PHP Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run tests
run: |
php -v
mysql -uroot -proot -e 'create database if not exists test;'
./vendor/bin/phpunit
env:
APP_ENV: testing
frontend:
name: Front End
name: JavaScript Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: yarn
- name: Run tests
- name: Run checks
run: |
yarn lint
yarn test
yarn tsc -p .

View File

@ -13,7 +13,7 @@
"dev": "webpack-dev-server",
"build": "rimraf public/app && webpack --mode=production -p && ts-node scripts/commitish.ts",
"lint": "eslint --ext=.js,.vue,.ts -f=beauty .",
"test": "tsc -p . && jest",
"test": "jest",
"new-version": "ts-node scripts/version.ts",
"codecov": "codecov -F js"
},