blessing-skin-server/.github/workflows/main.yml

30 lines
630 B
YAML
Raw Normal View History

name: CI
on: [push]
jobs:
php73:
2019-09-15 14:46:21 +08:00
name: PHP Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
2019-09-17 23:17:56 +08:00
- name: Prepare
run: |
cp .env.example .env
php artisan key:generate
2019-09-17 23:10:44 +08:00
- name: Validate Twig templates
run: php artisan twig:lint -v
frontend:
2019-09-15 14:46:21 +08:00
name: JavaScript Check
2019-09-11 23:34:42 +08:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: yarn
2019-09-15 14:46:21 +08:00
- name: Run checks
2019-09-11 23:34:42 +08:00
run: |
yarn lint
2019-09-15 14:46:21 +08:00
yarn tsc -p .