Skip to content

ci: Set up AppMap

ci: Set up AppMap #49

Workflow file for this run

name: Main
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '0 0 * * 0'
permissions:
contents: write
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- 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"
- name: Run tests
run: bundle exec rails test
- name: Save AppMaps
uses: actions/cache/save@v3
if: always()
with:
path: ./tmp/appmap
key: appmaps-${{ github.sha }}-${{ github.run_attempt }}
- name: Archive AppMaps
id: appmap-bootstrap-archive-appmaps
uses: getappmap/archive-action@v1
with:
revision: ${{ github.event.pull_request.base.sha }}
appmap-analysis:
if: always()
needs: [ test ]
uses: getappmap/analyze-action/.github/workflows/appmap-analysis.yml@v1
permissions:
actions: read
contents: read
checks: write
pull-requests: write