Merge pull request #171 from xtext/dependabot/maven/all-dependencies-… #339
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
| name: Build | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v6 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 21 | |
| - name: Set up Maven 3.9.9 | |
| uses: stCarolas/setup-maven@v5.1 | |
| with: | |
| maven-version: 3.9.9 | |
| - name: Cache Maven, p2 and Gradle dependencies | |
| uses: actions/cache@v6 | |
| with: | |
| path: | | |
| ~/.m2 | |
| ~/.gradle | |
| !~/.m2/**/*mavenized* | |
| !~/.m2/**/*example* | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml', '**/*.target') }} | |
| restore-keys: ${{ runner.os }}-m2- | |
| - name: Build | |
| run: | | |
| mvn clean install -U | |
| cd example-project | |
| mvn clean verify -U | |
| cd ../example-project-gradle | |
| ./gradlew clean build |