Skip to content

Feature/GitHub actions lab #22

Feature/GitHub actions lab

Feature/GitHub actions lab #22

Workflow file for this run

name: Java CI
on:
push:
branches:
- main
- feature/*
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
cache-dependency-path: '**/pom.xml'
- name: Build and run tests with Maven
run: mvn -B -V -ntp -DskipTests=false clean verify
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact
path: |
**/target/*.jar
**/target/*.war
**/target/*.zip