fix: init submodules in CI #171
Workflow file for this run
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: Node.js CI | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Submodules | |
| run: git submodule update --init --recursive | |
| - name: Setup Node.js | |
| uses: volta-cli/action@v4 | |
| - name: Install dependencies | |
| run: npm ci --no-audit | |
| - name: Generate code | |
| run: npm run codegen | |
| - name: Run linting | |
| run: npm run lint --if-present | |
| - name: Check code formatting | |
| run: npm run prettier:check --if-present | |
| - name: Run unit tests | |
| run: npm run test:unit | |
| - name: Build project | |
| run: npm run build --if-present | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: unit-test-results | |
| path: | | |
| **/*test-results* | |
| **/*coverage* | |
| retention-days: 7 |