Skip to content

Commit

Permalink
add build badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Linkshegelianer committed May 23, 2023
1 parent aaf7343 commit 9fb0cb1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- run: chmod +x app/gradlew

- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
build-root-directory: app

- run: chmod +x app/gradlew
- run: make -C app run-dist

- name: Publish code coverage
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
JACOCO_SOURCE_PATH: app/src/main/java
with:
coverageCommand: make -C app test-report
coverageLocations: ${{github.workspace}}/app/build/reports/jacoco/test/jacocoTestReport.xml:jacoco
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Java assignments labs

This repository contains a set of Java-related assignments dedicated to such topics as collections framework, OOP, web-development, Spring, Docker and advanced topics.
[![Java CI](https://github.com/Linkshegelianer/java-labs/workflows/build/badge.svg)](https://github.com/Linkshegelianer/java-labs/actions/workflows/build.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/b628f364f74f171d42f9/maintainability)](https://codeclimate.com/github/Linkshegelianer/java-labs/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/b628f364f74f171d42f9/test_coverage)](https://codeclimate.com/github/Linkshegelianer/java-labs/test_coverage)

[![Maintainability](https://api.codeclimate.com/v1/badges/b628f364f74f171d42f9/maintainability)](https://codeclimate.com/github/Linkshegelianer/java-labs/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/b628f364f74f171d42f9/test_coverage)](https://codeclimate.com/github/Linkshegelianer/java-labs/test_coverage)
This repository contains a set of Java-related assignments dedicated to such topics as collections framework, OOP, web-development, Spring, Docker and advanced topics.

## Index
* **Collections**
Expand Down

0 comments on commit 9fb0cb1

Please sign in to comment.