blessing-skin-server/.github/workflows/main.yml
2019-09-17 23:17:56 +08:00

30 lines
630 B
YAML

name: CI
on: [push]
jobs:
php73:
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: Prepare
run: |
cp .env.example .env
php artisan key:generate
- name: Validate Twig templates
run: php artisan twig:lint -v
frontend:
name: JavaScript Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: yarn
- name: Run checks
run: |
yarn lint
yarn tsc -p .