generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (54 loc) · 1.66 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: 'CI'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm
- name: install
run: npm i
- name: build:action
run: npm run nx build action && npm run postBuildAction -- action
- name: commit:build:action (GitHub's registry is GitHub so we need it compiled)
uses: EndBug/add-and-commit@v7
with:
author_name: push-based.io
author_email: [email protected]
message: 'Persist action build'
add: '*'
- name: test-unit:action
run: npm run nx test action
- name: run:action ( e2e test run for real output )
uses: ./
with:
commentId: test-e2e-first-run
dryRun: off
verbose: on
url: https://google.com
ufPath: ./user-flows
outPath: ./packages/user-flow-gh-action-e2e/measures
format: html,json
rcPath: ./.user-flowrc.json
- name: run:action ( dummy run for to test multiple comments )
uses: ./
with:
commentId: test-e2e-second-run
dryRun: on
ufPath: ./user-flows/flow.uf.ts
- name: use user-flow-nx-plugin
run: npm run nx user-flow user-flow-gh-action-e2e
- name: run:action ( test commentsOnly input )
uses: ./
with:
verbose: on
commentId: test-commentsOnly
onlyComments: on
outPath: ./dist/user-flow/user-flow-gh-action-e2e