ci: Set up AppMap #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: appmap-analysis | |
on: | |
pull_request: | |
push: | |
branches: | |
- main # Change this to the name of the mainline branch | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- run: 'wget https://github.com/docker/compose/releases/download/v2.22.0/docker-compose-linux-x86_64' | |
- run: 'sudo mv docker-compose-linux-x86_64 /usr/libexec/docker/cli-plugins/docker-compose' | |
- run: 'sudo chmod +x /usr/libexec/docker/cli-plugins/docker-compose' | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
cache: maven | |
- name: Maven Test | |
run: ./mvnw test | |
- name: Save AppMaps | |
uses: actions/cache/save@v3 | |
if: always() | |
with: | |
path: ./tmp/appmap | |
key: appmaps-${{ github.sha }}-${{ github.run_attempt }} | |
appmap-analysis: | |
if: always() | |
needs: [test] # You may need to change this to match the name of the step that runs your tests. | |
uses: getappmap/analyze-action/.github/workflows/appmap-analysis.yml@v1 | |
permissions: | |
actions: read | |
contents: read | |
checks: write | |
pull-requests: write |