Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification service #20

Merged
merged 8 commits into from
Sep 2, 2024
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
Original file line number Diff line number Diff line change
@@ -1,32 +1,39 @@
name: Spring Boot CI Pipeline
name: Automated Testing

on:
push:
branches:
- 'main'
- '**'
pull_request:
branches:
- '**'
- 'main'

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

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

# - name: Cache Maven dependencies
# uses: actions/cache@v3
# with:
# path: ~/.m2/repository
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
# restore-keys: |
# ${{ runner.os }}-maven-

- name: Install dependencies
run: mvn clean install
run: mvn clean install -DskipTests

- name: Run Spring Boot Application
run: mvn spring-boot:run
- name: Run Tests
run: mvn test
env:
ENV: production
DATABASE_URL: ${{ secrets.DATABASE_URL }}
Expand All @@ -42,5 +49,27 @@ jobs:
MAIL_SERVICE_STARTTLS: ${{ secrets.MAIL_SERVICE_STARTTLS }}
MAIL_SERVICE_DOMAIN_NAME: ${{ secrets.MAIL_SERVICE_DOMAIN_NAME }}

- name: Run Tests
run: mvn test
# lint-and-format:
# runs-on: ubuntu-latest
# needs: build-and-test
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
#
# - name: Set up JDK 17
# uses: actions/setup-java@v3
# with:
# java-version: '17'
# distribution: 'temurin'
#
# - name: Run Checkstyle
# run: mvn checkstyle:check
#
# - name: Run PMD
# run: mvn pmd:check
#
# - name: Run SpotBugs
# run: mvn spotbugs:check

# - name: Verify code formatting with Spotless (excluding Javadocs)
# run: mvn spotless:check -Dspotless.apply.skip
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ build/
.DS_Store

src/main/resources/application-dev.properties
.github/workflows/java-code-quality.yml

.github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@EnableAsync
public class LibrarymanApiApplication {

public static void main(String[] args) {
Expand Down
Loading