(chore): Remove GitHub workflow files from generator files #943
Workflow file for this run
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
name: Run Tests | |
on: | |
merge_group: | |
pull_request: | |
jobs: | |
test-generator: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Shellcheck | |
run: make shellcheck | |
build-and-test-js-sdk: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
repository: openfga/js-sdk | |
path: clients/fga-js-sdk | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
repository: openfga/go-sdk | |
path: clients/fga-go-sdk | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
repository: openfga/dotnet-sdk | |
path: clients/fga-dotnet-sdk | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Specify python version | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: "3.10" | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
repository: openfga/python-sdk | |
path: clients/fga-python-sdk | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
with: | |
java-version: 11 | |
distribution: "temurin" | |
cache: "gradle" | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
repository: openfga/java-sdk | |
path: clients/fga-java-sdk | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.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 |