HelloWorld
- Uses Spark framework
- Gets Heroku PORT from environment to set Spark WebServer port
- Serves a page at https://[server]/hello
EmptyTest
- Dummy test asserting 1=1 (always passes)
- Builds a jar with all the dependencies
- uses maven-assembly-plugin
- on the
package
command
- Created a repository secret
secrets.HEROKUAPIKEY
to use .github/workflows/maven.yml
- Checkout the project using actions/checkout@v3
- Setups JDK 17
- Build and test running
mvn package
- Publish test report using scacap/action-surefire-report@v1
- Deploy to Heroku (Irene's account) using akhileshns/[email protected]
- use
secrets.HEROKUAPIKEY
- use
- Heroku's configurations to run the application:
- system.properties
- define JDK 17
- Procfile
- tells Heroku how to run
web: java -cp ./target/walking-scheleton-1-jar-with-dependencies.jar HelloWorld
- tells Heroku how to run
- system.properties