Skip to content

Commit

Permalink
adjust workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
buehler committed Jan 24, 2024
1 parent b12ebfa commit 14cbc2c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/dotnet-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,21 @@ jobs:
semantic-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: bufbuild/buf-setup-action@v1
with:
submodules: true
fetch-depth: 1
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: extractions/setup-just@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.x
dotnet-version: 8.x
- name: Setup dotnet tools
run: dotnet tool restore
- name: Generate gRPC code
run: just generate-grpc
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
with:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/dotnet-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,23 @@ jobs:
version:
- 6.x
- 7.x
- 8.x
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: bufbuild/buf-setup-action@v1
with:
submodules: true
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: extractions/setup-just@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.version }}
- name: Setup dotnet tools
run: dotnet tool restore
- name: Generate gRPC code
run: just generate-grpc
- name: Test
run: dotnet test --configuration Release

Expand Down
5 changes: 1 addition & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
default: clean generate-grpc

@clean:
# rm -rf ./src/Zitadel.Grpc/Zitadel
# rm -rf ./src/Zitadel.Grpc/Google
# rm -rf ./src/Zitadel.Grpc/Grpc
# rm -rf ./src/Zitadel.Grpc/Validate
rm -rf ./src/Zitadel/Api/Generated

generate-grpc:
buf generate https://github.com/zitadel/zitadel.git#depth=1 --include-imports --path ./proto/zitadel

0 comments on commit 14cbc2c

Please sign in to comment.