thunderpay-api: pom #261
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 with Maven on macOS | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
build-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install Java and Maven | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y openjdk-11-jdk maven | |
java -version | |
mvn -version | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install Java and Maven | |
run: | | |
brew update | |
brew install openjdk@11 | |
brew install maven | |
sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk | |
export JAVA_HOME=$(/usr/libexec/java_home -v 11) | |
export PATH="$JAVA_HOME/bin:$PATH" | |
java -version | |
mvn -version |