ci: Set up AppMap #116
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: 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 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- 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 | |
# Begin AppMap bootstrap archive step | |
- name: Archive AppMaps | |
id: appmap-bootstrap-archive-appmaps | |
uses: getappmap/archive-action@v1 | |
with: | |
revision: ${{ github.event.pull_request.base.sha }} | |
# End AppMap bootstrap archive step |