Fix Readme #7
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 CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: openjdk:11 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Grant execute permission for run.sh | |
run: chmod +x run.sh | |
- name: Print Java version | |
run: java --version | |
- name: Compile | |
run: ./run.sh compile | |
build_test: | |
needs: build | |
runs-on: ubuntu-latest | |
container: | |
image: openjdk:11 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Compile Tests | |
run: ./run.sh compileTests | |
test: | |
needs: build_test | |
runs-on: ubuntu-latest | |
container: | |
image: openjdk:11 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Test | |
run: ./run.sh test |