Skip to content

Commit

Permalink
Merge pull request #13 from enovka/phase-1
Browse files Browse the repository at this point in the history
github action yaml updated
  • Loading branch information
enovka authored Jul 22, 2024
2 parents f18f9a0 + 75143b6 commit 6242db4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ env:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
Expand All @@ -24,8 +23,14 @@ jobs:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Start WireMock
run: java -jar wiremock-standalone-3.8.0.jar --port 8080 &
- name: Set up environment variables
run: echo "env=ci" >> $GITHUB_ENV
- name: Set up environment variables
run: echo "GPG_KEY_NAME=${{ secrets.GPG_KEY_NAME }}" >> $GITHUB_ENV
- name: Set up environment variables
run: echo "GPG_PASSPHRASE=${{ secrets.GPG_PASSPHRASE }}" >> $GITHUB_ENV
- name: Set up environment variables
run: echo "GEMINI_API_KEY=${{ secrets.GEMINI_API_KEY }}" >> $GITHUB_ENV
- name: Build with Maven
run: mvn -B package --file ${{ env.POM_FILE }}
- name: Update dependency graph
Expand Down
22 changes: 22 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<configuration>
<systemPropertyVariables>
<GEMINI_API_KEY>${env.GEMINI_API_KEY}</GEMINI_API_KEY>
</systemPropertyVariables>
</configuration>
</plugin>

<plugin>
Expand Down Expand Up @@ -258,4 +263,21 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>ci</id>
<activation>
<property>
<name>env</name>
<value>ci</value>
</property>
</activation>
<properties>
<gpg.keyName>${env.GPG_KEY_NAME}</gpg.keyName>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
<GEMINI_API_KEY>${env.GEMINI_API_KEY}</GEMINI_API_KEY>
</properties>
</profile>
</profiles>

</project>

0 comments on commit 6242db4

Please sign in to comment.