Skip to content

Commit

Permalink
ci: Add the AppMap analyze action
Browse files Browse the repository at this point in the history
  • Loading branch information
hopsoft committed Feb 29, 2024
1 parent 10a346b commit 74e2877
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
# Checkout pull request head so that a commit can be made
ref: ${{ github.event.pull_request.head.ref }}

- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
Expand All @@ -67,24 +64,22 @@ jobs:
- name: Install Playwright Browsers
run: 'npx playwright install chromium --with-deps'

# Begin install-action snippet
#
- 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
#
# End install-action snippet

- name: Run Tests
run: 'bundle exec rake test'

- name: Archive AppMaps
uses: getappmap/archive-action@v1
- name: Save AppMaps
uses: actions/cache/save@v3
if: always()
with:
revision: ${{ github.event.pull_request.base.sha }}
path: ./tmp/appmap
key: appmaps-${{ github.sha }}-${{ github.run_attempt }}

appmap-analysis:
if: always()
needs: ['Run Tests']
uses: getappmap/analyze-action/.github/workflows/appmap-analysis.yml@v1
permissions:
actions: read
contents: read
checks: write
pull-requests: write

0 comments on commit 74e2877

Please sign in to comment.