chore: eslint&format check on workflow (#253)
This commit is contained in:
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -5,16 +5,13 @@ on:
|
||||
branches: [ "main", "develop" ]
|
||||
pull_request:
|
||||
branches: [ "main", "develop" ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
unittcms-test:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -26,9 +23,11 @@ jobs:
|
||||
cache: 'npm'
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Format code
|
||||
run: npm run format
|
||||
- name: Run unit tests
|
||||
- name: Format check
|
||||
run: npm run format:check
|
||||
- name: ESLint check
|
||||
run: npm run lint
|
||||
- name: Unit tests
|
||||
run: npm run test
|
||||
|
||||
# frontend
|
||||
|
||||
Reference in New Issue
Block a user