Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/maven-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Java CI with Maven

on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'

- name: Build and test with Maven
run: mvn -B test --file pom.xml
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Price Selector API

[![Java CI with Maven](https://github.com/robertluiz/price-selector-api/actions/workflows/maven-ci.yml/badge.svg)](https://github.com/robertluiz/price-selector-api/actions/workflows/maven-ci.yml)

## Description

This is a Spring Boot application that provides a REST API to query product prices for a given brand, product ID, and application date. It uses an in-memory H2 database initialized with sample data.
Expand Down