feat: Summary report #159
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 0 * * 0' | |
permissions: | |
actions: read | |
contents: write | |
checks: write | |
pull-requests: write | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
# This is needed to see the version history, because | |
# checkout action doesn't fetch the base or head branches | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: 0 | |
- name: Install dependency libraries | |
run: yarn install | |
- name: Install AppMap tools | |
uses: getappmap/install-action@v1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
project-type: yarn | |
- name: Build | |
run: yarn package | |
- name: Test | |
run: yarn appmap | |
- name: Archive AppMaps | |
if: github.event_name != 'pull_request' | |
uses: ./ | |
- name: Analyze AppMaps | |
uses: getappmap/analyze-action@v1 | |
if: (success() || failure()) && github.event_name == 'pull_request' | |
with: | |
base-revision: ${{ github.event.pull_request.base.sha }} | |
head-revision: ${{ github.event.pull_request.head.sha }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Commit changes | |
# If you forgot to package the distribution, you'll see a commit added to your PR | |
if: github.event_name == 'pull_request' | |
uses: EndBug/add-and-commit@v7 | |
with: | |
add: dist | |
message: 'chore: Packaged distribution of the GitHub action' | |
- uses: rickstaa/action-create-tag@v1 | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
with: | |
tag: v1 | |
force_push_tag: true |