1
1
# GitHub Action: Run [ @FuzzyMonkeyCo ] ( https://github.com/FuzzyMonkeyCo ) 's [ ` monkey ` ] ( https://github.com/FuzzyMonkeyCo/monkey )
2
2
3
- [ ![ GitHub release (latest SemVer)] ( https://img.shields.io/github/v/release/FuzzyMonkeyCo/action -monkey?logo=github&sort=semver )] ( https://github.com/FuzzyMonkeyCo/action -monkey/releases )
3
+ [ ![ GitHub release (latest SemVer)] ( https://img.shields.io/github/v/release/FuzzyMonkeyCo/setup -monkey?logo=github&sort=semver )] ( https://github.com/FuzzyMonkeyCo/setup -monkey/releases )
4
4
5
- This action fetches & runs [ ` monkey ` ] ( https://github.com/FuzzyMonkeyCo/monkey ) on GitHub workflows to run ` monkey ` tests.
5
+ This action installs [ ` monkey ` ] ( https://github.com/FuzzyMonkeyCo/monkey ) on GitHub workflows to run ` monkey ` tests.
6
+
7
+ ``` yml
8
+ name : fuzzymonkey
9
+ on : [pull_request]
10
+ jobs :
11
+ monkey-lint :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v1
15
+ - uses : FuzzyMonkeyCo/setup-monkey@v1
16
+ - run : monkey lint
17
+ ` ` `
6
18
7
19
## Inputs
8
20
### ` command`
9
- ** Required. ** ` monkey ` command to run (e.g. ` fuzz ` or ` fmt ` ).
21
+ Optional. `monkey` command to run (e.g. `fuzz` or `fmt`).
10
22
# ## `args`
11
23
Optional. Arguments to the command.
12
24
# ## `workdir`
@@ -28,14 +40,27 @@ Seed returned by `monkey pastseed`. Non-empty when just ran `monkey fuzz` & foun
28
40
` ` ` yml
29
41
name: fuzzymonkey
30
42
on: [pull_request]
43
+ jobs:
44
+ monkey-lint:
45
+ runs-on: ubuntu-latest
46
+ steps:
47
+ - uses: actions/checkout@v1
48
+ - uses: FuzzyMonkeyCo/setup-monkey@v1
49
+ - run: monkey lint
50
+ ` ` `
51
+
52
+ # ## Run a command
53
+ ` ` ` yml
54
+ name: fuzzymonkey
55
+ on: [pull_request]
31
56
jobs:
32
57
monkey-fuzz:
33
58
name: Run monkey fuzz
34
59
runs-on: ubuntu-latest
35
60
steps:
36
61
- uses: actions/checkout@v1
37
62
- name: Monkey fuzz
38
- uses : FuzzyMonkeyCo/action -monkey@v1
63
+ uses: FuzzyMonkeyCo/setup -monkey@v1
39
64
with:
40
65
command: fuzz
41
66
` ` `
54
79
steps:
55
80
- uses: actions/checkout@v1
56
81
- name: Monkey fmt
57
- uses : FuzzyMonkeyCo/action -monkey@v1
82
+ uses: FuzzyMonkeyCo/setup -monkey@v1
58
83
with:
59
84
command: fmt
60
85
workdir: ./subdirectory/
66
91
steps:
67
92
- uses: actions/checkout@v1
68
93
- name: Monkey fuzz
69
- uses : FuzzyMonkeyCo/action -monkey@v1
94
+ uses: FuzzyMonkeyCo/setup -monkey@v1
70
95
with:
71
96
command: fuzz
72
97
args: --time-budget-overall=30m
0 commit comments