Build addon-tools before cpplint helper #60
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: Cpplint | |
| defaults: | |
| run: | |
| shell: bash | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| cpplint: | |
| name: Cpplint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Fetch Repository | |
| uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.13.0 | |
| cache: 'npm' | |
| - name: Install Modules | |
| run: npm ci | |
| - name: Install Cpplint | |
| run: pip install cpplint | |
| - name: Build Package | |
| run: npm run build:ci | |
| - name: Run Cpplint | |
| run: | | |
| node -e "import('@node-3d/addon-tools').then((m) => m.cpcpplint())" | |
| cpplint --recursive ./test-addon | |
| cpplint --recursive ./include |