Skip to content

Alright so everything my CI YAML (/.github/workflows/ file) runs exce… #3

Alright so everything my CI YAML (/.github/workflows/ file) runs exce…

Alright so everything my CI YAML (/.github/workflows/ file) runs exce… #3

Workflow file for this run

name: Backend CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache Maven dependencies
uses: actions/cache@v4
with:
path: |
~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache Testcontainers
uses: actions/cache@v4
with:
path: ~/.testcontainers
key: ${{ runner.os }}-testcontainers
restore-keys: |
${{ runner.os }}-testcontainers
- name: Set up JDK 24
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '24'
# Run Unit + Integration Tests
- name: Run tests
run: mvn -B clean verify
working-directory: ./springqpro-backend