Github Actions Improvements #100
This file contains hidden or 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
| # This workflow will be triggered if there will be changes to aws-lambda-java-core | |
| # package and it builds the package. | |
| name: Java CI aws-lambda-java-core | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'aws-lambda-java-core/**' | |
| pull_request: | |
| branches: [ '*' ] | |
| paths: | |
| - 'aws-lambda-java-core/**' | |
| - '.github/workflows/aws-lambda-java-core.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up JDK 1.8 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 8 | |
| distribution: corretto | |
| cache: maven | |
| - name: Install core with Maven | |
| run: mvn -B install --file aws-lambda-java-core/pom.xml |