Skip to content

Commit

Permalink
Merge f16afa5 into 29903e6
Browse files Browse the repository at this point in the history
  • Loading branch information
danglotb committed Jun 22, 2021
2 parents 29903e6 + f16afa5 commit a43623e
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 16 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/mvn-build-dspot-action.yml
@@ -1,6 +1,6 @@
name: DSpot CI

on: [push, pull_request]
on: [pull_request]

jobs:
build:
Expand All @@ -15,7 +15,16 @@ jobs:
distribution: 'adopt'
- name: Build with Maven
run: mvn install -DskipTests
- name: Test with Maven
run: cd dspot && mvn -Pcoveralls -DdoIntegrationTests=true clean test jacoco:report coveralls:report -DrepoToken=REPO_TOKEN
- name: Test and Coverage with Maven
run: cd dspot && mvn test jacoco:report
- name: "Report: Coverage via coveralls.io"
run: |
export CI_BRANCH=${BRANCH_NAME_OR_REF#refs/heads/}
export CI_PULL_REQUEST=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
cd dspot && mvn coveralls:report --no-transfer-progress -DrepoToken=$COVERALLS_SECRET
env:
REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
CI_NAME: github
BRANCH_NAME_OR_REF: ${{ github.head_ref || github.ref }}
CI_BUILD_NUMBER: ${{ github.run_id }}
CI_BUILD_URL: https://github.com/${{ github.repository }}/commit/${{ github.event.after }}/checks
COVERALLS_SECRET: ${{ secrets.GITHUB_TOKEN }}
@@ -1,6 +1,6 @@
name: DSpot - Diff-Test-Selection CI

on: [push, pull_request]
on: [pull_request]

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mvn-build-dspot-mvn-action.yml
@@ -1,6 +1,6 @@
name: DSpot - Maven CI

on: [push, pull_request]
on: [pull_request]

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mvn-build-dspot-prettifier.yml
@@ -1,6 +1,6 @@
name: DSpot - Prettifier CI

on: [push, pull_request]
on: [pull_request]

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mvn-checkstyle-action.yml
@@ -1,6 +1,6 @@
name: Checkstyle CI

on: [push, pull_request]
on: [pull_request]

jobs:
build:
Expand Down
21 changes: 13 additions & 8 deletions dspot/pom.xml
Expand Up @@ -19,11 +19,6 @@
<name>Gradle Tooling API repository</name>
<url>https://repo.gradle.org/gradle/libs-releases-local/</url>
</repository>
<repository>
<id>maven.inria.fr-snapshot</id>
<name>Maven Repository for Spoon Snapshots</name>
<url>http://maven.inria.fr/artifactory/spoon-public-snapshot</url>
</repository>
</repositories>

<dependencies>
Expand Down Expand Up @@ -299,6 +294,16 @@
</plugin>

</plugins>

<pluginManagement>
<plugins>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.3.0</version>
</plugin>
</plugins>
</pluginManagement>

</build>

Expand All @@ -311,9 +316,9 @@
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.3.0</version>
<configuration>
<repoToken>${secrets.COVERALLS_TOKEN}</repoToken>
</configuration>
<!-- <configuration>
<repoToken>${{ secrets.COVERALLS_TOKEN }}</repoToken>
</configuration> -->
</plugin>

<plugin>
Expand Down

0 comments on commit a43623e

Please sign in to comment.