update user resolver #554
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| - name: Clean npm cache and remove node_modules | |
| run: | | |
| rm -rf node_modules package-lock.json | |
| npm cache clean --force | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Verify package-lock.json | |
| run: git diff --exit-code package-lock.json || echo "⚠️ package-lock.json changed, please update it." | |
| - name: Run npm ci | |
| run: npm ci | |
| - name: Run Prettier | |
| run: npx prettier -c "**/*.js" | |
| - name: Run ESLint | |
| run: npx eslint . |