Skip to content

Commit ec013a5

Browse files
authored
Merge pull request #11 from getappmap/feat/install-latest-appmap-tools
feat: Install latest appmap tools
2 parents c44d330 + f20d2f0 commit ec013a5

File tree

15 files changed

+215
-8405
lines changed

15 files changed

+215
-8405
lines changed

.appmap/archive/full/.keep

Whitespace-only changes.

.github/workflows/appmap-archive.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
name: Archive AppMaps on PR merge
2+
13
on:
24
pull_request:
35
types:
46
- closed
5-
schedule:
6-
# Keep the artifact up to date, as it will expire after 90 days.
7-
- cron: 1 1 1 * *
87

98
env:
109
APPMAP_TELEMETRY_DISABLED: 'true'
@@ -20,13 +19,11 @@ jobs:
2019
run: yarn install
2120
- name: Install and configure AppMap tools
2221
uses: ./
23-
id: appmap-install
2422
with:
2523
verbose: true
2624
- name: Build AppMaps
2725
run: yarn appmap
2826
- name: Archive AppMaps
29-
uses: getappmap/archive-appmap-action@v1-pre.8
30-
id: appmap-archive
27+
uses: getappmap/archive-appmap-action@v1-pre.10
3128
with:
3229
verbose: true

.github/workflows/main.yml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: AppMap Install Action
1+
name: CI
22

33
on:
44
pull_request:
@@ -12,36 +12,15 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v3
15-
with:
16-
# This is needed to see the version history, because
17-
# checkout action doesn't fetch the base or head branches
18-
ref: ${{ github.event.pull_request.head.ref }}
19-
fetch-depth: 0
2015
- name: Install dependency libraries
2116
run: yarn install
22-
- name: Install and configure AppMap tools
23-
id: appmap-install
24-
uses: ./
25-
with:
26-
verbose: true
2717
- name: Build
2818
run: yarn build
29-
- name: Make AppMaps
30-
run: yarn appmap || true
31-
- name: Preflight
32-
id: appmap-preflight
33-
uses: getappmap/preflight-appmap-action@v1-pre.2
34-
with:
35-
base-revision: ${{ github.event.pull_request.base.sha }}
36-
head-revision: ${{ github.event.pull_request.head.sha }}
37-
github-token: ${{ secrets.GITHUB_TOKEN }}
38-
verbose: true
3919
- name: Test
4020
run: yarn test
4121
- name: Build GitHub action
4222
run: yarn package
4323
- name: Commit changes
44-
id: commit-package-distribution
4524
# If you forgot to package the distribution, you'll see a commit added to your PR
4625
uses: EndBug/add-and-commit@v7
4726
with:

.github/workflows/preflight.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Preflight
2+
3+
on:
4+
pull_request:
5+
6+
env:
7+
APPMAP_TELEMETRY_DISABLED: 'true'
8+
9+
jobs:
10+
main:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
# This is needed to see the version history, because
17+
# checkout action doesn't fetch the base or head branches
18+
ref: ${{ github.event.pull_request.head.ref }}
19+
fetch-depth: 0
20+
- name: Install dependency libraries
21+
run: yarn install
22+
- name: Install and configure AppMap
23+
id: appmap-install
24+
uses: ./
25+
with:
26+
verbose: true
27+
- name: Build
28+
run: yarn build
29+
- name: Make AppMaps
30+
run: yarn appmap || true
31+
- name: Preflight
32+
id: appmap-preflight
33+
uses: getappmap/preflight-appmap-action@v1-pre.6
34+
with:
35+
base-revision: ${{ github.event.pull_request.base.sha }}
36+
head-revision: ${{ github.event.pull_request.head.sha }}
37+
github-token: ${{ secrets.GITHUB_TOKEN }}
38+
verbose: true

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,3 @@ tmp
1010
# Files created when testing this action on itself.
1111
test/fixture/appmap.yml
1212
patch
13-
14-
# AppMap archive
15-
# .appmap

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ inputs:
1717
description: |
1818
Installer name to be used, in case of ambiguity. This is an advanced option.
1919
tools-url:
20-
description: URL to the AppMap tools.
21-
default: https://github.com/getappmap/appmap-js/releases/download/%40appland%2Fappmap-preflight-v1.0-pre.3/appmap-preflight-linux-x64
20+
description:
21+
URL to the AppMap tools. By default, the latest version will be downloaded and installed.
2222
verbose:
2323
description: Enable verbose logging.
2424
default: false

0 commit comments

Comments
 (0)