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

Replace Travis by GitHub actions #58

Merged
merged 62 commits into from
Mar 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
468824f
Set up first version of GitHub actions
cesarsotovalero Mar 25, 2021
561b587
Add minor fixes
cesarsotovalero Mar 25, 2021
4a1b7fd
change header
cesarsotovalero Mar 25, 2021
c3ca758
Change config file
cesarsotovalero Mar 25, 2021
e8f675a
Change name
cesarsotovalero Mar 25, 2021
60a4a22
Update master.yml
cesarsotovalero Mar 25, 2021
1550356
Merge remote-tracking branch 'origin/cesarsotovalero/setup_github_act…
cesarsotovalero Mar 25, 2021
0e0ebc0
Update master.yml
cesarsotovalero Mar 25, 2021
6bbb6cf
Change file name
cesarsotovalero Mar 25, 2021
2e14cf0
Merge remote-tracking branch 'origin/cesarsotovalero/setup_github_act…
cesarsotovalero Mar 25, 2021
9cf11a6
Fix test
cesarsotovalero Mar 25, 2021
e4f7934
Remove assertion
cesarsotovalero Mar 25, 2021
b27d075
Add test report
cesarsotovalero Mar 25, 2021
f7d2314
Update build.yml
cesarsotovalero Mar 25, 2021
699a980
Merge remote-tracking branch 'origin/cesarsotovalero/setup_github_act…
cesarsotovalero Mar 25, 2021
049e753
Ignore test
cesarsotovalero Mar 25, 2021
c337a2f
Merge remote-tracking branch 'origin/cesarsotovalero/setup_github_act…
cesarsotovalero Mar 25, 2021
ca2c410
Ignore test
cesarsotovalero Mar 25, 2021
79c1d90
Ignore test
cesarsotovalero Mar 25, 2021
d97b636
Change test
cesarsotovalero Mar 25, 2021
1d3d838
Change maven task
cesarsotovalero Mar 25, 2021
7fc9ceb
Clean up action
cesarsotovalero Mar 25, 2021
f45b8ae
Add SonarCloud and Coveralls
cesarsotovalero Mar 25, 2021
e77b758
try Codecov
cesarsotovalero Mar 25, 2021
583a993
Fix codecov
cesarsotovalero Mar 25, 2021
f700c90
Fix sonarcloud
cesarsotovalero Mar 25, 2021
e509d79
Fix sonarcloud
cesarsotovalero Mar 25, 2021
60e1d54
Fix sonarcloud
cesarsotovalero Mar 26, 2021
8bae092
Fix sonarcloud
cesarsotovalero Mar 26, 2021
64ab99f
Fix sonarcloud
cesarsotovalero Mar 26, 2021
2016ec5
Fix sonarcloud
cesarsotovalero Mar 26, 2021
94bb8af
Fix sonarcloud
cesarsotovalero Mar 26, 2021
349b7f2
Cleanup
cesarsotovalero Mar 26, 2021
d31c98a
Set up just java 11
cesarsotovalero Mar 26, 2021
c9c9aec
Hotfix
cesarsotovalero Mar 26, 2021
655c086
Hotfix
cesarsotovalero Mar 26, 2021
fdd4139
Hotfix
cesarsotovalero Mar 26, 2021
c3b639d
Hotfix
cesarsotovalero Mar 26, 2021
56cdf64
simplify
cesarsotovalero Mar 26, 2021
fad9018
simplify
cesarsotovalero Mar 26, 2021
d43c121
hotfix
cesarsotovalero Mar 26, 2021
de44e8a
Update build.yml
cesarsotovalero Mar 26, 2021
1b96b3d
Merge remote-tracking branch 'origin/cesarsotovalero/setup_github_act…
cesarsotovalero Mar 26, 2021
4acbe7b
hotfix
cesarsotovalero Mar 26, 2021
4b356a3
hotfix
cesarsotovalero Mar 26, 2021
0963a0c
hotfix
cesarsotovalero Mar 26, 2021
266deba
hotfix
cesarsotovalero Mar 26, 2021
53d768e
hotfix
cesarsotovalero Mar 26, 2021
6392486
hotfix
cesarsotovalero Mar 26, 2021
71a0470
hotfix
cesarsotovalero Mar 26, 2021
14d3282
hotfix
cesarsotovalero Mar 26, 2021
4720872
hotfix
cesarsotovalero Mar 26, 2021
69f02a8
hotfix
cesarsotovalero Mar 26, 2021
387931d
hotfix
cesarsotovalero Mar 26, 2021
5989102
hotfix
cesarsotovalero Mar 26, 2021
7a475b3
set max parallel
cesarsotovalero Mar 26, 2021
c5305bc
set max parallel
cesarsotovalero Mar 26, 2021
67c2843
fix checkstyle
cesarsotovalero Mar 26, 2021
5dbf366
fix checkstyle
cesarsotovalero Mar 26, 2021
49f4f87
fix checkstyle
cesarsotovalero Mar 26, 2021
3f623cd
Disable travis
cesarsotovalero Mar 26, 2021
ef7673e
Remove travis references
cesarsotovalero Mar 26, 2021
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
61 changes: 61 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: build

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
strategy:
max-parallel: 1
matrix:
os: [ ubuntu-latest, windows-latest ]
java: [ 11 ]
runs-on: ${{ matrix.os }}
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: "Cache Local Maven Repository"
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: "CheckStyle"
run: mvn validate --errors
- name: "Compile and Install"
run: mvn clean install -DskipTests --errors
- name: "Unit Tests"
run: mvn test --errors --fail-at-end
- name: "Integration Tests"
run: mvn failsafe:integration-test --errors --fail-at-end
# The following is only executed on Ubuntu on Java 11
- name: "CodeCov"
if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean'
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
- name: "Cache SonarCloud"
if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean'
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: "SonarCloud"
if: matrix.os == 'ubuntu-latest' && matrix.java == 11 && github.repository == 'castor-software/depclean'
run: mvn sonar:sonar -Dsonar.projectKey=castor-software_depclean -Dsonar.organization=castor-software -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dsonar.java.source=11 -Dsonar.java.target=11
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .travis/depclean-maven-plugin.sh

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DepClean <img src="https://github.com/castor-software/depclean/blob/master/.img/logo.svg" align="left" height="135px" alt="DepClean logo"/>

[![Build Status](https://travis-ci.org/castor-software/depclean.svg?branch=master)](https://travis-ci.org/castor-software/depclean)
[![build](https://github.com/castor-software/depclean/actions/workflows/build.yml/badge.svg)](https://github.com/castor-software/depclean/actions/workflows/build.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=castor-software_depclean&metric=alert_status)](https://sonarcloud.io/dashboard?id=castor-software_depclean)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=castor-software_depclean&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=castor-software_depclean)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=castor-software_depclean&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=castor-software_depclean)
Expand All @@ -13,7 +13,7 @@
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=castor-software_depclean&metric=ncloc)](https://sonarcloud.io/dashboard?id=castor-software_depclean)
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=castor-software_depclean&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=castor-software_depclean)
[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=castor-software_depclean&metric=sqale_index)](https://sonarcloud.io/dashboard?id=castor-software_depclean)
[![Coverage Status](https://coveralls.io/repos/github/castor-software/depclean/badge.svg?branch=master)](https://coveralls.io/github/castor-software/depclean?branch=master)
[![codecov](https://codecov.io/gh/castor-software/depclean/branch/master/graph/badge.svg?token=X0XE6R72OD)](https://codecov.io/gh/castor-software/depclean)

## What is DepClean?

Expand Down
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,13 @@
<failOnServiceError>false</failOnServiceError>
</configuration>
</plugin>
<!-- SonarCloud plugin -->
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<!-- see versions at https://search.maven.org/search?q=g:org.sonarsource.scanner.maven%20AND%20a:sonar-maven-plugin -->
<version>3.7.0.1746</version>
</plugin>
</plugins>
</pluginManagement>

Expand Down