Skip to content

CI Pipeline for Wassim-Rached/QuizHub @ refs/pull/23/merge #33

CI Pipeline for Wassim-Rached/QuizHub @ refs/pull/23/merge

CI Pipeline for Wassim-Rached/QuizHub @ refs/pull/23/merge #33

name: Continuous Integration
run-name: CI Pipeline for ${{ github.repository }} @ ${{ github.ref }}
concurrency: CI-${{ github.repository }}-${{ github.ref }}
on:
pull_request:
branches:
- staging
- dev
jobs:
build-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 21
- name: Test the application
run: mvn -B test --file pom.xml
- name: Build the application
run: |
mvn clean
mvn -B package --file pom.xml