Skip to content

Commit

Permalink
Merge branch 'main' into snyk-fix-052145fb6a487a8b402fce3776bcb1e5
Browse files Browse the repository at this point in the history
  • Loading branch information
ronenh authored Nov 27, 2024
2 parents 9745e95 + 13234b9 commit 71c3b47
Show file tree
Hide file tree
Showing 178 changed files with 2,274 additions and 78,181 deletions.
52 changes: 34 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: ci

on:
Expand Down Expand Up @@ -41,14 +42,21 @@ jobs:
kv/data/MavenCentral "PRIVATE_GPG_KEY" | MAVEN_GPG_PRIVATE_KEY;
kv/data/MavenCentral "TOKEN_USERNAME" | TOKEN_USERNAME;
kv/data/MavenCentral "TOKEN_PASSWORD" | TOKEN_PASSWORD;
-
-
name: Info
run: echo "Using proto ${{ github.event.inputs.proto_ref }} with sha ${{ github.event.inputs.proto_sha }}"
-
-
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.CODEGEN_APP_ID }}
private-key: ${{ secrets.CODEGEN_APP_KEY }}
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}
-
name: Install deps
run: make deps
Expand All @@ -61,15 +69,15 @@ jobs:
-
name: Build
run: make build
-
-
name: Commit changes
if: github.event_name == 'workflow_dispatch'
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
add: 'pom.xml src'
push: origin HEAD:main

test:
runs-on: ubuntu-latest
needs: build
Expand All @@ -92,12 +100,12 @@ jobs:
kv/data/MavenCentral "PRIVATE_GPG_KEY" | MAVEN_GPG_PRIVATE_KEY;
kv/data/MavenCentral "TOKEN_USERNAME" | TOKEN_USERNAME;
kv/data/MavenCentral "TOKEN_PASSWORD" | TOKEN_PASSWORD;
-
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
-
name: Set up Java for publishing to Maven Central Repository
uses: actions/setup-java@v4
with:
Expand All @@ -115,12 +123,13 @@ jobs:
-
name: Install package
run: make install
-
-
name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master
-
-
name: Install topaz
run: brew tap aserto-dev/tap && brew install aserto-dev/tap/topaz && topaz install && topaz templates install todo --no-console --force
run: |
brew tap aserto-dev/tap && brew install aserto-dev/tap/topaz && topaz install && topaz templates install todo --no-console --force
-
name: Build examples
working-directory: examples
Expand All @@ -131,14 +140,14 @@ jobs:
run: |
cp assets/.env.topaz-directory.example .env
java -jar target/examples-1.0.0-SNAPSHOT-shaded.jar
release:
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
name: Release to maven central
steps:
-
-
name: Read configuration
uses: hashicorp/vault-action@v3
id: vault
Expand All @@ -156,12 +165,19 @@ jobs:
kv/data/MavenCentral "PRIVATE_GPG_KEY" | MAVEN_GPG_PRIVATE_KEY;
kv/data/MavenCentral "TOKEN_USERNAME" | TOKEN_USERNAME;
kv/data/MavenCentral "TOKEN_PASSWORD" | TOKEN_PASSWORD;
-
-
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.CODEGEN_APP_ID }}
private-key: ${{ secrets.CODEGEN_APP_KEY }}
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
token: ${{ steps.app-token.outputs.token }}
-
name: Set up Java for publishing to Maven Central Repository
uses: actions/setup-java@v4
with:
Expand All @@ -172,23 +188,23 @@ jobs:
server-password: TOKEN_PASSWORD
gpg-private-key: ${{ env.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
-
-
name: Build
run: make build
-
-
name: Create release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "${{ github.workspace }}/target/*.jar"
token: ${{ secrets.GITHUB_TOKEN }}
-
-
name: Publish to the Maven Central Repository
run: make deploy
-
-
name: Bump to the next version
run: make bump
-
-
name: Commit changes
uses: EndBug/add-and-commit@v9
with:
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.aserto</groupId>
<artifactId>java-directory</artifactId>
<version>0.31.3</version>
<version>0.31.4</version>

<name>${project.groupId}:${project.artifactId}</name>
<description>Generated Java gRPC bindings for the Topaz and Aserto Directory Service; these are low-level bindings. For a more idiomatic development experience, we advise using the aserto-java and/or aserto-spring packages.</description>
Expand Down Expand Up @@ -38,7 +38,7 @@
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<grpc.version>1.66.0</grpc.version>
<grpc.version>1.68.1</grpc.version>
<protobuf.version>3.25.3</protobuf.version>
<tomcat.annotation.api.version>6.0.53</tomcat.annotation.api.version>
<protovalidate.version>0.4.2</protovalidate.version>
Expand Down Expand Up @@ -70,7 +70,7 @@
<groupId>build.buf</groupId>
<artifactId>protovalidate</artifactId>
<version>${protovalidate.version}</version>
</dependency>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>annotations-api</artifactId>
Expand Down Expand Up @@ -159,4 +159,4 @@
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</project>
</project>
Loading

0 comments on commit 71c3b47

Please sign in to comment.