Skip to content

Merge pull request #52 from SelahattinSert/task/deploy-application-to… #68

Merge pull request #52 from SelahattinSert/task/deploy-application-to…

Merge pull request #52 from SelahattinSert/task/deploy-application-to… #68

Workflow file for this run

name: CI Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build with Maven
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
cache: maven
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.6
- name: Build with Maven
run: mvn -B package --file pom.xml
test:
name: Run tests
runs-on: ubuntu-latest
needs: build
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
cache: maven
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.6
- name: Run tests
run: mvn clean test