Skip to content

Commit c55defc

Browse files
authored
Merge pull request #8 from getappmap/feat/refactor-workflows
feat: Refactor workflows
2 parents 3f45fd6 + 8d05e66 commit c55defc

File tree

10 files changed

+209
-80
lines changed

10 files changed

+209
-80
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on:
2+
pull_request:
3+
types:
4+
- closed
5+
6+
env:
7+
APPMAP_TELEMETRY_DISABLED: 'true'
8+
9+
jobs:
10+
appmap_archive_main:
11+
runs-on: ubuntu-latest
12+
if: github.event.pull_request.merged == true
13+
steps:
14+
- name: Checkout step
15+
uses: actions/checkout@v3
16+
- name: Install dependencies
17+
run: yarn install
18+
- name: Install and configure AppMap tools
19+
uses: getappmap/install-appmap-action@v1-pre.3
20+
id: install-appmap
21+
with:
22+
verbose: true
23+
- name: Build AppMaps
24+
run: yarn appmap
25+
- name: Archive AppMaps
26+
uses: ./
27+
id: archive-appmap
28+
with:
29+
verbose: true

.github/workflows/main.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,15 @@ jobs:
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v3
13-
- name: Install and configure AppMap
14-
uses: getappmap/install-appmap-action@v1-pre.2
15-
id: install-appmap
1613
- name: Install dependency libraries
1714
run: yarn install
1815
- name: Build
1916
run: yarn build
2017
- name: Test
2118
run: yarn test
22-
- name: Build GitHub action
19+
- name: Package
2320
run: yarn package
24-
- name: Make AppMaps
25-
# appmap-agent-js@13.6.0 doesn't propagate the jest exit code, so the main Test step cannot be the AppMap step.
26-
run: yarn appmap
27-
- name: Create and store AppMaps archive
28-
uses: ./
29-
id: appmap-archive
30-
- name: Commit changes
21+
- name: Commit package changes, if any
3122
# If you forgot to package the distribution, you'll see a commit added to your PR
3223
uses: EndBug/add-and-commit@v7
3324
with:

dist/index.js

Lines changed: 111 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ActionLogger.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)