Skip to content

fix: disk data display #311

fix: disk data display

fix: disk data display #311

Workflow file for this run

name: Linter
on:
push:
pull_request:
paths-ignore:
- '**.md'
jobs:
es-linter-for-ts:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install nodejs
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: |
cd setup/dashboard/ws || exit 1
npm ci
- name: Run linter
run: |
cd setup/dashboard/ws || exit 1
npm run lint
es-linter-for-js:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install nodejs
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: |
cd setup/dashboard || exit 1
npm ci
- name: Run linter
run: |
cd setup/dashboard || exit 1
npm run lint
php-linter:
runs-on: ubuntu-22.04
env:
PHP_CS_FIXER_IGNORE_ENV: 1
steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: php-actions/composer@v6
with:
php_version: '8.0'
- name: Run linter
run: |
composer run-script lint
- name: Run PHPStan
run: |
composer run-script analyse
shell-linter:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Run linter
uses: azohra/shell-linter@latest
with:
# todo: scripts in packages
path: "onekey.sh,setup.sh,bump-version.sh"
python-linter:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install pipenv
run: |
python -m pip install --upgrade pipenv wheel
- id: env-version
run: |
echo "python=$(python -c 'import platform;print(platform.python_version())')" >> $GITHUB_OUTPUT
echo "ubuntu=$(lsb_release -cs)" >> $GITHUB_OUTPUT
- id: cache-pipenv
uses: actions/cache@v3
with:
path: ~/.local/share/virtualenvs
key: ${{ steps.env-version.outputs.ubuntu }}-${{ steps.env-version.outputs.python }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: |
pipenv install --deploy --dev
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
pipenv run flake8