19 lines
479 B
YAML
19 lines
479 B
YAML
|
name: Migration checks
|
||
|
|
||
|
on: workflow_dispatch
|
||
|
|
||
|
jobs:
|
||
|
checks:
|
||
|
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- name: Use Node.js
|
||
|
uses: actions/setup-node@v1
|
||
|
with:
|
||
|
node-version: '12.x'
|
||
|
- run: npm ci
|
||
|
- run: result=$(find src -type f -iname '*.html' -exec sh -c 'cat {} | tr "\n" " " | grep -Eo "class=\"[^\"]+\"[^>]+class=\"" ' \; | wc -l); test $result -eq 0
|
||
|
- run: npx tslint -c ionic-migration.json -p tsconfig.json
|