Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/test-astra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ env:
ASTRA_DB_TOKEN: ${{ secrets.ASTRA_DB_TOKEN }}
ASTRA_DB_DATABASE_NAME: ${{ secrets.ASTRA_DB_DATABASE_NAME }}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} # should probably be globally unique
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/test-docs-compilation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Compile against documentation examples

on:
pull_request:
branches:
- main

permissions:
pull-requests: write
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test-compilation:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6

- name: Run compilation tests
id: compile-step
uses: datastax/astra-client-docs-tests/.github/actions/test-compilation@master
with:
clients: 'csharp'
args: -A csharp='<ProjectReference Include="${{ github.workspace }}/src/DataStax.AstraDB.DataApi/DataStax.AstraDB.DataApi.csproj"/>'
allow-failures: 'true'
docs-repo-token: ${{ secrets.DOC_GITHUB_PAT_CROSS_ORG }}
docs-repo: '@ske-csharp-client'

- name: Label PR on failure
uses: actions-ecosystem/action-add-labels@v1
if: steps.compile-step.outputs.failed_tests == 'true' && github.event.pull_request
with:
labels: 'Breaks Docs Compilation Tests'

- name: Remove label on success
uses: actions-ecosystem/action-remove-labels@v1
if: steps.compile-step.outputs.failed_tests == 'false' && github.event.pull_request
with:
labels: 'Breaks Docs Compilation Tests'
16 changes: 10 additions & 6 deletions .github/workflows/test-hcd.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Run integration tests on HCD + Data API

on:
push:
branches:
- main
pull_request:
branches:
- main
# push:
# branches:
# - main
# pull_request:
# branches:
# - main

permissions:
id-token: write # required for OIDC
Expand All @@ -20,6 +20,10 @@ env:
AWS_ECR_REGISTRY: ${{ secrets.AWS_ECR_REGISTRY }}
AWS_ECR_HCD_IMAGE_TAG: "1.2.3"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
env:
Expand Down
Loading