Skip to content

Commit

Permalink
ci: Set up AppMap (#33)
Browse files Browse the repository at this point in the history
* revertme: (AppMap) Enable install-action to commit to the branch

* revertme: (AppMap) Permit install-action to make a commit

* revertme: (AppMap) Run install-action

* ci: (AppMap) Update workflow triggers

* revertme: (AppMap) Create the baseline AppMap archive

* ci: Add AppMap language agent and appmap.yml

* revert: (AppMap) Create the baseline AppMap archive

* ci: (AppMap) Run analysis via reusable workflow
  • Loading branch information
petecheslock authored Dec 22, 2023
1 parent a4593b3 commit c7081d1
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
pull_request:
schedule:
- cron: '0 0 * * 0'

jobs:
test:
Expand All @@ -18,3 +21,20 @@ jobs:

- 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 }}

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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@ db/test.*
/node_modules

# Vendored Ruby gems
/vendor
/vendor

# AppMap artifacts
/.appmap
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby "3.1.2"

gem 'appmap', :groups => [:development, :test]

gem "rails", "7.0.4"
gem "image_processing", "1.12.2"
gem "active_storage_validations", "0.9.8"
Expand Down
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ GEM
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
ansi (1.5.0)
appmap (0.102.2)
activesupport
method_source
rack
reverse_markdown
autoprefixer-rails (10.4.7.0)
execjs (~> 2)
aws-eventstream (1.2.0)
Expand Down Expand Up @@ -309,6 +314,7 @@ PLATFORMS

DEPENDENCIES
active_storage_validations (= 0.9.8)
appmap
aws-sdk-s3 (= 1.114.0)
bcrypt (= 3.1.18)
bootsnap (= 1.12.0)
Expand Down
6 changes: 6 additions & 0 deletions appmap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: sample_rails_app
packages:
- path: app
- path: lib
language: ruby
appmap_dir: tmp/appmap

0 comments on commit c7081d1

Please sign in to comment.