From 04a1dfdf412d8582b7dc4f1894559a36eccf465a Mon Sep 17 00:00:00 2001 From: Pete Cheslock Date: Wed, 6 Sep 2023 14:18:40 -0400 Subject: [PATCH] ci: Add build triggers and analysis step --- .github/workflows/appmap-analysis.yml | 41 ++++++++++++--------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/.github/workflows/appmap-analysis.yml b/.github/workflows/appmap-analysis.yml index 5342514159..89c2477ff7 100644 --- a/.github/workflows/appmap-analysis.yml +++ b/.github/workflows/appmap-analysis.yml @@ -2,6 +2,11 @@ name: appmap-analysis on: pull_request: + push: + branches: + - master + schedule: + - cron: '0 0 * * 0' jobs: record-appmaps: @@ -48,11 +53,12 @@ jobs: - name: Set matrix group env var with zero-based numbering if: always() + id: set-matrix-group-var env: NUM: ${{ matrix.group }} run: | - echo "ARCHIVE_ID=$(($NUM - 1))" >> $GITHUB_ENV - + echo "ARCHIVE_ID=$(($NUM - 1))" >> $GITHUB_OUTPUT + - name: Delete Request AppMaps if: always() run: | @@ -62,27 +68,16 @@ jobs: if: always() uses: getappmap/archive-action@v1 with: - archive-id: ${{ env.ARCHIVE_ID }} + archive-id: ${{ steps.set-matrix-group-var.outputs.ARCHIVE_ID }} appmap-analysis: if: always() - runs-on: ubuntu-latest - needs: [ record-appmaps ] - - steps: - - uses: actions/checkout@v3 - - name: Install AppMap tools - uses: getappmap/install-action@v1 - with: - install-appmap-library: false - - - name: Merge AppMaps - uses: getappmap/archive-action/merge@v1 - with: - revision: ${{ github.event.pull_request.base.sha }} - archive-count: 17 - - - name: Archive AppMaps - uses: getappmap/archive-action@v1 - with: - revision: ${{ github.event.pull_request.base.sha }} \ No newline at end of file + needs: [record-appmaps] + uses: getappmap/analyze-action/.github/workflows/appmap-analysis-matrix.yml@v1 + with: + archive-count: 17 + permissions: + actions: read + contents: read + checks: write + pull-requests: write \ No newline at end of file