Setup AppMap Analysis #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: appmap-analysis | |
on: | |
pull_request: | |
push: | |
branches: | |
- main # Change this to the name of the mainline branch | |
schedule: | |
- cron: '0 0 * * 0' | |
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 | |
id: install-appmap | |
uses: getappmap/install-action@v1 | |
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: Save AppMaps | |
uses: actions/cache/save@v3 | |
if: always() | |
with: | |
path: ${{ steps.install-appmap.outputs.appmap-dir }} | |
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. | |
uses: getappmap/analyze-action/.github/workflows/appmap-analysis.yml@v1 | |
permissions: | |
actions: read | |
contents: read | |
checks: write | |
pull-requests: write |