An starter Java project instrumented with Scope through GitHub Actions.
This starter project is based on:
The project needs to add the maven-surefire-plugin
and/or maven-failsafe-plugin
in your pom.xml
file.
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
Finally, the scope-for-maven-action
action has been configured in the GitHub Workflow scope.yml
file:
name: Scope Maven JDK v1.8
on: [push]
jobs:
scope:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Scope for Maven Action
uses: undefinedlabs/scope-for-maven-action@v1
with:
dsn: ${{secrets.SCOPE_DSN}}
For further information about how to install Scope, go to Scope Java Agent Installation
- Click on
Use this template
button and create the repository in your namespace. - Access to app.scope.dev and
- Add/Modify your namespace to include your new repository.
- Get the API Key for your new repository.
- Go to your repository on GitHub
- Go to
Settings
->Secrets
. - Add your API Key secret.
- Name:
SCOPE_DSN
- Value:
https://<<your APIKEY>>@app.scope.dev
- Name:
- Click on
Actions
button and access to the workflow. - Click on
Re-run checks
.
Once GitHub Workflow has finished, you can check the test executions report on app.scope.dev