Chore: platformatic kafka #1033
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: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x, 22.x, 23.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install | |
| run: | | |
| npm install --ignore-scripts | |
| # We need to run node-rdkafka scripts | |
| - name: Run node-rdkafka scripts | |
| working-directory: packages/kafka | |
| run: npm rebuild node-rdkafka | |
| # We need to run @platformatic/kafka scripts | |
| - name: Run @platformatic/kafka scripts | |
| working-directory: packages/kafka | |
| run: npm rebuild @platformatic/kafka | |
| - name: Docker start | |
| run: | | |
| npm run docker:start | |
| - name: Build TS | |
| run: | | |
| npm run build | |
| - name: Run Tests | |
| run: | | |
| npm run test:ci | |
| - name: Docker stop | |
| run: | | |
| npm run docker:stop | |
| automerge: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| steps: | |
| - uses: fastify/github-action-merge-dependabot@v3 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |