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 #18

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,60 @@
name: Main

on:
push:
branches:
- main
pull_request:
schedule:
- cron: '0 0 * * 0'

permissions:
# Allows the EndBug/add-and-commit step to commit the package manager changes,
# adding the AppMap language library and configuration file appmap.yml.
# Once the EndBug/add-and-commit is removed, this permission can be removed,
# unless you need it for other reasons.
contents: write

# Allows the getappmap/archive-action to write a PR comment with the
# AppMap configuration status.
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

# Begin AppMap CI language agent installation.
# This snippet can be safely removed once the AppMap language agent has been
# added to the project dependencies, and appmap.yml has been created.
- 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"
# End AppMap CI language agent installation

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