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

Clean up CI build #42

Merged
merged 4 commits into from
Sep 6, 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
20 changes: 3 additions & 17 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@

name: Java CI with Maven

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: [push, pull_request]

jobs:
build:
Expand All @@ -16,22 +12,12 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml

- name: SonarCloud Scan
run: |
if ["$SONAR_TOKEN" == ""]; then
echo "Sonar secure variables NOT available"
else
echo "Sonar secure variables ARE available"
mvn -P coverage clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar -Dsonar.projectKey=ricksbrown_cowsay -Dsonar.organization="ricksbrown" -Dsonar.sources=. -Dsonar.inclusions=src/main/** -Dsonar.host.url="https://sonarcloud.io"
fi
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
[![Java CI with Maven](https://github.com/ricksbrown/cowsay/actions/workflows/maven.yml/badge.svg)](https://github.com/ricksbrown/cowsay/actions/workflows/maven.yml)
[![CodeQL](https://github.com/ricksbrown/cowsay/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/ricksbrown/cowsay/actions/workflows/codeql-analysis.yml)
[![Javadocs](https://javadoc.io/badge/com.github.ricksbrown/cowsay.svg)](https://javadoc.io/doc/com.github.ricksbrown/cowsay)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ricksbrown_cowsay&metric=security_rating)](https://sonarcloud.io/dashboard?id=ricksbrown_cowsay)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ricksbrown_cowsay&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=ricksbrown_cowsay)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ricksbrown_cowsay&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ricksbrown_cowsay)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=ricksbrown_cowsay&metric=coverage)](https://sonarcloud.io/dashboard?id=ricksbrown_cowsay)

# Cowsay

Expand Down
3 changes: 0 additions & 3 deletions travis.sh

This file was deleted.

Loading