chmod #2
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: Build and Test | |
on: [pull_request, push] | |
jobs: | |
build_latest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout sources | |
uses: actions/checkout@v4 | |
- name: validate gradle wrapper | |
uses: gradle/wrapper-validation-action@v2 | |
- name: setup java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
- name: Test | |
run: ./gradlew runMainTest | |
build_5: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout sources | |
uses: actions/checkout@v4 | |
- name: validate gradle wrapper | |
uses: gradle/wrapper-validation-action@v2 | |
- name: setup java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 8 | |
- name: setup gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: run test | |
run: | | |
chmod +x ./gradlew | |
./gradlew runJava5Test | |
upload: | |
runs-on: ubuntu-latest | |
steps: | |
- name: upload build artifacts | |
continue-on-error: true | |
uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts | |
path: build/libs/*.jar |