test: add SDK examples and live conformance (#71) #2
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: Functional tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: '17 9 * * 1' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: functional-tests-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| functional-tests: | |
| if: github.ref == 'refs/heads/main' | |
| timeout-minutes: 15 | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Bazel | |
| uses: bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86 | |
| with: | |
| bazelisk-cache: true | |
| disk-cache: ${{ github.workflow }}-functional-tests | |
| repository-cache: true | |
| - name: Set up Node | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 | |
| with: | |
| node-version: '26' | |
| - name: Enable pnpm | |
| run: corepack enable pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Refresh published SDK | |
| run: pnpm update published-sdk --latest | |
| - name: Run functional tests | |
| env: | |
| PPLX_API_TOKEN: ${{ secrets.PPLX_API_TOKEN }} | |
| run: bazel test //e2e:live --test_env=PPLX_API_TOKEN |