Observable: wait for client config #6158
This file contains 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
# Please post in #team-cody-clients if you need help getting this CI check to pass. | |
# Worst-case: feel free to disable this workflow here https://github.com/sourcegraph/cody/actions/workflows/agent-bindings.yml | |
name: agent-bindings | |
on: | |
pull_request: | |
paths: | |
- '**.ts' | |
- '**.tsx' | |
- '**.js' | |
jobs: | |
kotlin: | |
if: github.repository == 'sourcegraph/cody' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # SECURITY: pin third-party action hashes | |
id: pnpm-install | |
with: | |
version: 8.6.7 | |
run_install: false | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
name: Setup pnpm cache | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm generate-agent-kotlin-bindings | |
- run: ./agent/scripts/error-if-diff.sh | |
- run: ./agent/scripts/compile-bindings-if-diff.sh |