Skip to content

Merge remote-tracking branch 'origin/main' #6

Merge remote-tracking branch 'origin/main'

Merge remote-tracking branch 'origin/main' #6

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Java CI with Maven
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Cache the Maven packages to speed up build
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build and test project with Maven
run: mvn -B package --file pom.xml
- name: Create staging directory and copy jars
run: mkdir staging && cp icmon/target/*jar-with-dependencies.jar staging
- name: Package application
uses: actions/upload-artifact@v1
with:
name: PokeMAN
path: staging