Skip to content

Setup AppMap Analysis #5

Setup AppMap Analysis

Setup AppMap Analysis #5

Workflow file for this run

name: AppMap Analysis
on:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 0 * * 0'
permissions:
contents: read
# Permission to update the PR description
pull-requests: write
# Permission to list artifacts
# https://docs.github.com/en/rest/actions/artifacts?apiVersion=2022-11-28#list-artifacts-for-a-repository
actions: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
# Install AppMap library and tools
- name: Enable appmap gem update
run: bundle config unset deployment
- name: Install AppMap tools
uses: getappmap/[email protected]
with:
project-type: bundler # Choose the type of your project here:
# bundler, maven, gradle, pip, pipenv, poetry,
# yarn, npm, etc.
####################################################################
# Put the commands required to run your application test suite.
# For example, create and setup the test database, commands
# to run your test suite.
- name: Run tests
run: bundle exec rails test
- name: Archive AppMaps
if: github.event_name != 'pull_request'
uses: getappmap/[email protected]
- name: Analyze AppMaps
if: (success() || failure()) && github.event_name == 'pull_request'
uses: getappmap/[email protected]
with:
base-revision: ${{ github.event.pull_request.base.sha }}
head-revision: ${{ github.event.pull_request.head.sha }}
github-token: ${{ secrets.GITHUB_TOKEN }}