Skip to content

feat(java-sdk, dotnet-sdk, js-sdk): Release consistency sdks #865

feat(java-sdk, dotnet-sdk, js-sdk): Release consistency sdks

feat(java-sdk, dotnet-sdk, js-sdk): Release consistency sdks #865

Workflow file for this run

name: Run Tests
on:
merge_group:
pull_request:
jobs:
test-generator:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- name: Shellcheck
run: make shellcheck
build-and-test-js-sdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
repository: openfga/js-sdk
path: clients/fga-js-sdk
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
- name: Run SDK Tests
run: make test-client-js
- name: Check for SDK changes
run: |
cd clients/fga-js-sdk
if $(git status | grep -q "nothing to commit"); then
echo "CLEAN: no changes found"
exit 0
fi
echo "DIRTY: changes found"
git status
git diff
build-and-test-go-sdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
repository: openfga/go-sdk
path: clients/fga-go-sdk
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
- name: Run SDK Tests
run: make test-client-go
- name: Check for SDK changes
run: |
cd clients/fga-go-sdk
if $(git status | grep -q "nothing to commit"); then
echo "CLEAN: no changes found"
exit 0
fi
echo "DIRTY: changes found"
git status
git diff
build-and-test-dotnet-sdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
repository: openfga/dotnet-sdk
path: clients/fga-dotnet-sdk
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
- name: Run All Tests
run: make test-client-dotnet
- name: Check for SDK changes
run: |
cd clients/fga-dotnet-sdk
if $(git status | grep -q "nothing to commit"); then
echo "CLEAN: no changes found"
exit 0
fi
echo "DIRTY: changes found"
git status
git diff
build-and-test-python-sdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- name: Specify python version
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: "3.10"
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
repository: openfga/python-sdk
path: clients/fga-python-sdk
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
- name: Run All Tests
run: |-
make test-client-python
- name: Check for SDK changes
run: |
cd clients/fga-python-sdk
if $(git status | grep -q "nothing to commit"); then
echo "CLEAN: no changes found"
exit 0
fi
echo "DIRTY: changes found"
git status
git diff
build-and-test-java-sdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
with:
java-version: 11
distribution: "temurin"
cache: "gradle"
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
repository: openfga/java-sdk
path: clients/fga-java-sdk
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
- name: Run All Tests
run: |-
make test-integration-client-java
- name: Check for SDK changes
run: |
cd clients/fga-java-sdk
if $(git status | grep -q "nothing to commit"); then
echo "CLEAN: no changes found"
exit 0
fi
echo "DIRTY: changes found"
git status
git diff