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

ci: remove on push github actions #990

Merged
merged 6 commits into from
Jun 22, 2021
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
17 changes: 13 additions & 4 deletions .github/workflows/mvn-build-dspot-action.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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