mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
# Check javascript template files
|
|
|
|
name: HTML Templates
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
pull_request:
|
|
branches-ignore:
|
|
- l10*
|
|
|
|
jobs:
|
|
|
|
html:
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
INVENTREE_DB_ENGINE: sqlite3
|
|
INVENTREE_DB_NAME: inventree
|
|
INVENTREE_MEDIA_ROOT: ./media
|
|
INVENTREE_STATIC_ROOT: ./static
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v2
|
|
- name: Install node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
- run: npm install
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.7
|
|
- name: Install Dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install gettext
|
|
pip3 install invoke
|
|
invoke install
|
|
invoke static
|
|
- name: Check HTML Files
|
|
run: |
|
|
npx markuplint InvenTree/build/templates/build/*.html
|
|
npx markuplint InvenTree/company/templates/company/*.html
|
|
npx markuplint InvenTree/order/templates/order/*.html
|
|
npx markuplint InvenTree/part/templates/part/*.html
|
|
npx markuplint InvenTree/stock/templates/stock/*.html
|
|
npx markuplint InvenTree/templates/*.html
|
|
npx markuplint InvenTree/templates/InvenTree/*.html
|
|
npx markuplint InvenTree/templates/InvenTree/settings/*.html
|
|
|