Assistant: Anthropic prompt caching extension API #3721
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: "Test: PR" | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
- 'prerelease/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pr-tags: | |
runs-on: ubuntu-latest | |
outputs: | |
tags: ${{ steps.pr-tags.outputs.tags }} | |
win_tag_found: ${{ steps.pr-tags.outputs.win_tag_found }} | |
web_tag_found: ${{ steps.pr-tags.outputs.web_tag_found }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Parse Tags from PR Body | |
id: pr-tags | |
run: bash scripts/pr-tags-parse.sh | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_REPOSITORY: ${{ github.repository }} | |
GITHUB_EVENT_PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }} | |
e2e-ubuntu-electron: | |
name: e2e | |
uses: ./.github/workflows/test-e2e-ubuntu.yml | |
needs: pr-tags | |
with: | |
grep: ${{ needs.pr-tags.outputs.tags }} | |
display_name: "electron (ubuntu)" | |
currents_tags: "pull-request,electron/ubuntu,${{ needs.pr-tags.outputs.tags }}" | |
report_testrail: false | |
report_currents: false | |
install_undetectable_interpreters: false | |
install_license: false | |
skip_tags: "@:nightly-only" | |
upload_logs: false | |
secrets: inherit | |
e2e-windows-electron: | |
needs: pr-tags | |
if: ${{ needs.pr-tags.outputs.win_tag_found == 'true' }} | |
name: e2e | |
uses: ./.github/workflows/test-e2e-windows.yml | |
with: | |
grep: ${{ needs.pr-tags.outputs.tags }} | |
display_name: "electron (windows)" | |
currents_tags: "pull-request,electron/windows,${{ needs.pr-tags.outputs.tags }}" | |
report_testrail: false | |
report_currents: false | |
upload_logs: false | |
secrets: inherit | |
e2e-ubuntu-browser: | |
needs: pr-tags | |
if: ${{ needs.pr-tags.outputs.web_tag_found == 'true' }} | |
name: e2e | |
uses: ./.github/workflows/test-e2e-ubuntu.yml | |
with: | |
grep: ${{ needs.pr-tags.outputs.tags }} | |
display_name: "browser (ubuntu)" | |
project: "e2e-browser" | |
currents_tags: "pull-request,browser/ubuntu,${{ needs.pr-tags.outputs.tags }}" | |
report_testrail: false | |
report_currents: false | |
install_undetectable_interpreters: false | |
install_license: true | |
skip_tags: "@:nightly-only" | |
upload_logs: true | |
secrets: inherit | |
unit-tests: | |
name: test | |
uses: ./.github/workflows/test-unit.yml | |
secrets: inherit | |
integration-tests: | |
name: test | |
uses: ./.github/workflows/test-integration.yml | |
secrets: inherit | |
with: | |
pull_request: true | |