Merge pull request #189 from atsign-foundation/dependabot/github_acti… #360
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: Java at_client CI | |
on: | |
push: | |
branches: | |
- trunk | |
pull_request: | |
branches: | |
- trunk | |
permissions: # added using https://github.com/step-security/secure-workflows | |
contents: read | |
jobs: | |
test-and-build: | |
defaults: | |
run: | |
working-directory: at_client | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- name: Set up JDK 8 and maven cache | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 | |
with: | |
java-version: '8' | |
distribution: 'adopt' | |
cache: maven | |
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml | |
- name: Build clean and run unit tests | |
run: mvn --batch-mode clean test -DskipIntegrationTests=true -Dgpg.skip=true | |
- name: Run integration tests | |
run: mvn --batch-mode verify -DskipUnitTests=true -Dgpg.skip=true | |
- name: Generate build outputs | |
run: mvn --batch-mode install -DskipTests=true --update-snapshots --no-transfer-progress -Dgpg.skip=true |