Add envoy proxy examples #174
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: Run doc tests | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - '**/docs/**' | |
| jobs: | |
| setup: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| data-transforms: ${{ steps.filter.outputs.data-transforms }} | |
| envoy-shadowing: ${{ steps.filter.outputs.envoy-shadowing }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Determine changed paths | |
| id: filter | |
| uses: dorny/paths-filter@v3 | |
| with: | |
| filters: | | |
| data-transforms: | |
| - 'data-transforms/**' | |
| envoy-shadowing: | |
| - 'docker-compose/envoy-shadowing/**' | |
| run-tests: | |
| needs: setup | |
| strategy: | |
| fail-fast: false # Ensure all matrix jobs run to completion even if one fails | |
| matrix: | |
| os: [ubuntu-latest] # Only using Linux for now since macOS takes a long time | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Increase AIO limit for Redpanda | |
| if: needs.setup.outputs.envoy-shadowing == 'true' | |
| run: | | |
| # Redpanda uses Linux AIO. With 6 brokers each needing ~10000 events, | |
| # we exceed the default limit of 65536. Increase it. | |
| sudo sysctl -w fs.aio-max-nr=1048576 | |
| - name: Test data transforms | |
| if: needs.setup.outputs.data-transforms == 'true' | |
| run: | | |
| # Run the tests for the data transforms | |
| npm run test-transforms | |
| - name: Test envoy shadowing | |
| if: needs.setup.outputs.envoy-shadowing == 'true' | |
| run: npm run test-envoy-shadowing | |
| - name: Upload debug artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: doc-detective-output | |
| path: /home/runner/work/_temp/doc-detective-output.json |