Tweak CI
This commit is contained in:
parent
4a9af2d5df
commit
f51e2d7b9d
|
|
@ -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
|
||||
|
||||
|
|
|
|||
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
|
|
@ -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 .
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user