Tweak CI
This commit is contained in:
parent
4a9af2d5df
commit
f51e2d7b9d
|
|
@ -17,7 +17,6 @@ jobs:
|
||||||
- node_modules
|
- node_modules
|
||||||
- ~/.yarn
|
- ~/.yarn
|
||||||
key: v1-dependencies-{{ checksum "yarn.lock" }}
|
key: v1-dependencies-{{ checksum "yarn.lock" }}
|
||||||
- run: yarn lint
|
|
||||||
- run: yarn test --coverage -w=2
|
- run: yarn test --coverage -w=2
|
||||||
- run: yarn codecov
|
- run: yarn codecov
|
||||||
|
|
||||||
|
|
|
||||||
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
|
|
@ -4,27 +4,20 @@ on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
php73:
|
php73:
|
||||||
name: PHP 7.3
|
name: PHP Check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: composer install --prefer-dist --no-progress --no-suggest
|
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:
|
frontend:
|
||||||
name: Front End
|
name: JavaScript Check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
- name: Run tests
|
- name: Run checks
|
||||||
run: |
|
run: |
|
||||||
yarn lint
|
yarn lint
|
||||||
yarn test
|
yarn tsc -p .
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
"dev": "webpack-dev-server",
|
"dev": "webpack-dev-server",
|
||||||
"build": "rimraf public/app && webpack --mode=production -p && ts-node scripts/commitish.ts",
|
"build": "rimraf public/app && webpack --mode=production -p && ts-node scripts/commitish.ts",
|
||||||
"lint": "eslint --ext=.js,.vue,.ts -f=beauty .",
|
"lint": "eslint --ext=.js,.vue,.ts -f=beauty .",
|
||||||
"test": "tsc -p . && jest",
|
"test": "jest",
|
||||||
"new-version": "ts-node scripts/version.ts",
|
"new-version": "ts-node scripts/version.ts",
|
||||||
"codecov": "codecov -F js"
|
"codecov": "codecov -F js"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user