| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- name: Lint
- on:
- pull_request:
- push:
- branches:
- - main
- jobs:
- shellcheck:
- name: ShellCheck
- runs-on: ubuntu-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v3
- - name: Install ShellCheck
- run: sudo apt-get install -y shellcheck
- - name: Run ShellCheck script
- run: ./test/shellcheck.sh
- eslint:
- name: ESLint
- runs-on: ubuntu-latest
- defaults:
- run:
- working-directory: web
- steps:
- - name: Checkout code
- uses: actions/checkout@v3
- - name: Setup Node
- uses: actions/setup-node@v3
- with:
- cache: yarn
- cache-dependency-path: web/yarn.lock
- - name: Install Node packages
- run: yarn install --frozen-lockfile
- - name: Run ESLint
- run: yarn eslint js
- stylelint:
- name: Stylelint
- runs-on: ubuntu-latest
- defaults:
- run:
- working-directory: web
- steps:
- - name: Checkout code
- uses: actions/checkout@v3
- - name: Setup Node
- uses: actions/setup-node@v3
- with:
- cache: yarn
- cache-dependency-path: web/yarn.lock
- - name: Install Node packages
- run: yarn install --frozen-lockfile
- - name: Run Stylelint
- run: yarn stylelint css/src/themes/*.css
|