From 204de18d2658217a9ae1cb1ad6cb476842c447b0 Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Wed, 29 Nov 2023 11:00:30 -0800 Subject: [PATCH 1/8] revertme: (AppMap) Enable install-action to commit to the branch --- .github/workflows/run-rspec.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-rspec.yml b/.github/workflows/run-rspec.yml index 73b5ca3..31f248b 100644 --- a/.github/workflows/run-rspec.yml +++ b/.github/workflows/run-rspec.yml @@ -16,6 +16,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} - uses: ruby/setup-ruby@v1 with: ruby-version: '3.2' @@ -37,4 +39,4 @@ jobs: actions: read contents: read checks: write - pull-requests: write + pull-requests: write \ No newline at end of file From 0738e30bf30feb532e61ce463049b342db68b2a0 Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Wed, 29 Nov 2023 11:00:47 -0800 Subject: [PATCH 2/8] revertme: (AppMap) Permit install-action to make a commit --- .github/workflows/run-rspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-rspec.yml b/.github/workflows/run-rspec.yml index 31f248b..5aa1c8e 100644 --- a/.github/workflows/run-rspec.yml +++ b/.github/workflows/run-rspec.yml @@ -37,6 +37,6 @@ jobs: uses: getappmap/analyze-action/.github/workflows/appmap-analysis.yml@v1 permissions: actions: read - contents: read + contents: write checks: write pull-requests: write \ No newline at end of file From 03b4abbc0da5abd0d38bf0f3ca856f778ca285a2 Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Wed, 29 Nov 2023 11:01:09 -0800 Subject: [PATCH 3/8] revertme: (AppMap) Run install-action --- .github/workflows/run-rspec.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/run-rspec.yml b/.github/workflows/run-rspec.yml index 5aa1c8e..9b61730 100644 --- a/.github/workflows/run-rspec.yml +++ b/.github/workflows/run-rspec.yml @@ -22,6 +22,21 @@ jobs: with: ruby-version: '3.2' bundler-cache: true + # Begin AppMap CI language agent installation. + # This snippet can be safely removed once the AppMap language agent has been + # added to the project dependencies, and appmap.yml has been created. + - name: Enable appmap gem update + run: bundle config unset deployment + - name: Install AppMap tools + id: install-appmap + uses: getappmap/install-action@v1 + with: + project-type: bundler + - name: Commit changes + uses: EndBug/add-and-commit@v9 + with: + message: "ci: Add AppMap language agent and appmap.yml" + # End AppMap CI language agent installation - run: bundle exec rspec - name: Save AppMaps uses: actions/cache/save@v3 From 670980aa6639768c0af15baf2bf65442d01e2fee Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Wed, 29 Nov 2023 11:01:54 -0800 Subject: [PATCH 4/8] ci: (AppMap) Update workflow triggers --- .github/workflows/run-rspec.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run-rspec.yml b/.github/workflows/run-rspec.yml index 9b61730..5c96a7d 100644 --- a/.github/workflows/run-rspec.yml +++ b/.github/workflows/run-rspec.yml @@ -1,16 +1,16 @@ name: My workflow -permissions: - actions: read - contents: write - checks: write - pull-requests: write on: - pull_request: push: branches: - main + pull_request: schedule: - cron: '0 0 * * 0' +permissions: + actions: read + contents: write + checks: write + pull-requests: write jobs: test: runs-on: ubuntu-latest From d816e3691d4b979f528dc0ad915edc872e454fd0 Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Wed, 29 Nov 2023 11:02:17 -0800 Subject: [PATCH 5/8] revertme: (AppMap) Create the baseline AppMap archive --- .github/workflows/run-rspec.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/run-rspec.yml b/.github/workflows/run-rspec.yml index 5c96a7d..7d5524b 100644 --- a/.github/workflows/run-rspec.yml +++ b/.github/workflows/run-rspec.yml @@ -38,6 +38,13 @@ jobs: message: "ci: Add AppMap language agent and appmap.yml" # End AppMap CI language agent installation - run: bundle exec rspec + # 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 - name: Save AppMaps uses: actions/cache/save@v3 if: always() From b51ecce7029b66d211268d97ad0a0fb0193467ea Mon Sep 17 00:00:00 2001 From: Daniel-Warner-X Date: Wed, 29 Nov 2023 19:02:46 +0000 Subject: [PATCH 6/8] ci: Add AppMap language agent and appmap.yml --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index a315013..d12bf21 100644 --- a/Gemfile +++ b/Gemfile @@ -7,6 +7,7 @@ source "https://rubygems.org" # # This will help ensure the proper Jekyll version is running. # Happy Jekylling! + gem 'appmap', :groups => [:development, :test] gem "jekyll", "~> 4.3.2" From 65f34cde69ddd1bbb5198d19516f8c22038baab5 Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Wed, 29 Nov 2023 11:04:48 -0800 Subject: [PATCH 7/8] revert: (AppMap) Create the baseline AppMap archive --- .github/workflows/run-rspec.yml | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/.github/workflows/run-rspec.yml b/.github/workflows/run-rspec.yml index 7d5524b..92ffa50 100644 --- a/.github/workflows/run-rspec.yml +++ b/.github/workflows/run-rspec.yml @@ -8,43 +8,17 @@ on: - cron: '0 0 * * 0' permissions: actions: read - contents: write checks: write - pull-requests: write jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.ref }} - uses: ruby/setup-ruby@v1 with: ruby-version: '3.2' bundler-cache: true - # Begin AppMap CI language agent installation. - # This snippet can be safely removed once the AppMap language agent has been - # added to the project dependencies, and appmap.yml has been created. - - name: Enable appmap gem update - run: bundle config unset deployment - - name: Install AppMap tools - id: install-appmap - uses: getappmap/install-action@v1 - with: - project-type: bundler - - name: Commit changes - uses: EndBug/add-and-commit@v9 - with: - message: "ci: Add AppMap language agent and appmap.yml" - # End AppMap CI language agent installation - run: bundle exec rspec - # 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 - name: Save AppMaps uses: actions/cache/save@v3 if: always() @@ -59,6 +33,4 @@ jobs: uses: getappmap/analyze-action/.github/workflows/appmap-analysis.yml@v1 permissions: actions: read - contents: write - checks: write - pull-requests: write \ No newline at end of file + checks: write \ No newline at end of file From 96288374daddbf0de5eb5da0361ebc11017ca9c5 Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Wed, 29 Nov 2023 11:05:11 -0800 Subject: [PATCH 8/8] ci: (AppMap) Run analysis via reusable workflow --- .github/workflows/run-rspec.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run-rspec.yml b/.github/workflows/run-rspec.yml index 92ffa50..f10fdb2 100644 --- a/.github/workflows/run-rspec.yml +++ b/.github/workflows/run-rspec.yml @@ -20,17 +20,17 @@ jobs: bundler-cache: true - run: bundle exec rspec - name: Save AppMaps - uses: actions/cache/save@v3 + uses: actions/cache@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. + needs: [test] uses: getappmap/analyze-action/.github/workflows/appmap-analysis.yml@v1 permissions: actions: read - checks: write \ No newline at end of file + checks: write + contents: read + pull-requests: write \ No newline at end of file