mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-24 23:05:29 +08:00
* dbeaver/vscode#77 refactor: yarn & vit migration * chore: configure eslint & typescript & prettier * fix: chunk splitting & assets loading * fix: enable corepack * refactor: dev environment * chore: remove corepack enable from build scripts * chore: make script executable * fix: SSL check in vite dev * chore: update debug launch configs --------- Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com> Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
name: Frontend Lint
|
|
|
|
on:
|
|
# Allows you to reuse workflows by referencing their YAML files
|
|
workflow_call:
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
permissions:
|
|
contents: read
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: ./cloudbeaver/webapp
|
|
|
|
steps:
|
|
- name: Checkout cloudbeaver
|
|
uses: actions/checkout@v4
|
|
with:
|
|
path: cloudbeaver
|
|
|
|
- run: corepack enable
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "lts/*"
|
|
cache: "yarn"
|
|
cache-dependency-path: "./cloudbeaver/webapp/yarn.lock"
|
|
|
|
- run: |
|
|
yarn install --immutable
|
|
git fetch origin "${{ github.base_ref }}" --depth=1
|
|
FILES=$(git diff --name-only 'origin/${{ github.base_ref }}' ${{ github.sha }} -- . | sed 's|^webapp/||')
|
|
if [ -n "$FILES" ]; then
|
|
yarn lint --pass-on-no-patterns --no-error-on-unmatched-pattern $FILES
|
|
else
|
|
echo "No files to lint"
|
|
fi
|