Skip to content
Draft
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
33 changes: 31 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
name: build

on:
push:
branches:
- main
pull_request:
schedule:
- cron: '0 0 * * 0'

permissions:
contents: write
pull-requests: write

jobs:
test:
Expand All @@ -12,6 +21,8 @@ jobs:
- run: 'sudo chmod +x /usr/libexec/docker/cli-plugins/docker-compose'

- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Set up JDK 17
uses: actions/setup-java@v2
Expand All @@ -20,5 +31,23 @@ jobs:
distribution: 'adopt'
cache: maven

- name: Maven Test
run: ./mvnw test
- name: Install AppMap tools
id: install-appmap
uses: getappmap/install-action@v1
with:
project-type: gradle
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: "ci: Add AppMap language agent and appmap.yml"

- name: Run tests
run: ./gradlew appmap test

# Begin AppMap bootstrap archive step
- name: Archive AppMaps
id: appmap-bootstrap-archive-appmaps
uses: getappmap/archive-action@v1
with:
revision: ${{ github.event.pull_request.base.sha }}
# End AppMap bootstrap archive step