Skip to content

Commit

Permalink
add configuration step for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh Kennadi committed Sep 9, 2024
1 parent 2e14d14 commit 4caecf4
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,37 @@ jobs:
java-version: '11'
cache: maven

- name: Configure GPG
run: |
mkdir -p ~/.gnupg
chmod 700 ~/.gnupg
echo "use-agent" > ~/.gnupg/gpg.conf
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
echo "default-cache-ttl 600" >> ~/.gnupg/gpg-agent.conf
echo "max-cache-ttl 7200" >> ~/.gnupg/gpg-agent.conf
gpgconf --reload gpg-agent
- name: Import GPG Key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY_TEST }}" | gpg --batch --import
gpg --list-secret-keys
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY_TEST}}

- name: GPG Configuration and Key Status
run: |
gpg --list-keys
gpg --list-secret-keys
gpg --version
gpgconf --list-dir
- name: Build and test post generation
# run: |
# cd Xero-Java
# mvn clean verify -DskipTests=true
run: |
export GPG_TTY=$(tty)
mvn clean verify -DskipTests=true -Dgpg.passphrase=Aravinth120996! -X
mvn clean verify -DskipTests=true -Dgpg.passphrase=Aravinth120996! -X
working-directory: Xero-Java
env:
GPG_PASSPHRASE: Aravinth120996!

0 comments on commit 4caecf4

Please sign in to comment.