mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-20 04:12:23 -06:00
Update ESLint configuration, Dockerfile, and package dependencies; add GitHub Actions workflow for code quality checks
- Changed ESLint parser options to use 'module' as source type. - Updated Dockerfile to remove force flag from npm install command. - Upgraded 'mime' package from version 3.0.0 to 4.0.0 in package.json. - Added '@types/mime' as a development dependency. - Updated TypeScript configuration to use 'CommonJS' module format. - Introduced a new GitHub Actions workflow for checking code quality, including linting and build checks.
This commit is contained in:
28
.github/workflows/check_code_quality.yml
vendored
Normal file
28
.github/workflows/check_code_quality.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Check Code Quality
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
check-lint-and-build:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Node
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 20.x
|
||||
|
||||
- name: Install packages
|
||||
run: npm install
|
||||
|
||||
- name: Check linting
|
||||
run: npm run lint:check
|
||||
|
||||
- name: Check build
|
||||
run: npm run db:generate
|
||||
|
||||
- name: Check build
|
||||
run: npm run build
|
||||
Reference in New Issue
Block a user