Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Set up AppMap #6

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
20 changes: 8 additions & 12 deletions .github/workflows/run-rspec.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
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
checks: write
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -22,19 +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
contents: read
checks: write
pull-requests: write
contents: read
pull-requests: write
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down