Skip to content

Commit 23d4d5f

Browse files
authored
Update README.md
1 parent 3f8fc7d commit 23d4d5f

File tree

1 file changed

+3
-79
lines changed

1 file changed

+3
-79
lines changed

README.md

Lines changed: 3 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -107,84 +107,8 @@ jobs:
107107

108108
You can create a workflow that are manually triggered with the `workflow_dispatch` event.
109109

110-
You will then see a `Run workflow` button on the Actions tab, enabling you to easily trigger a run.
110+
You will then see a __Run workflow__ button on the Actions tab, enabling you to easily trigger a run.
111111

112-
![image](https://user-images.githubusercontent.com/54814796/176915768-e89bf101-56e6-4303-8b77-485c7ecb5143.png)
113-
114-
115-
__Workflow example:__
116-
117-
```YAML
118-
name: "Run UTBotJava-action"
119-
120-
on:
121-
workflow_dispatch:
122-
inputs:
123-
pushTests:
124-
description: "Push generated tests to the repository"
125-
type: boolean
126-
default: true
127-
generatedTestsRelativeRoot:
128-
description: "Relative path to the root of the tests"
129-
type: string
130-
default: '.utbot/test'
131-
testFramework:
132-
type: choice
133-
options:
134-
- junit4
135-
- junit5
136-
- testng
137-
default: 'junit5'
138-
generationTimeout:
139-
description: "Time budget for one class (ms)"
140-
type: string
141-
default: '60000'
142-
codegenLanguage:
143-
type: choice
144-
options:
145-
- java
146-
- kotlin
147-
default: java
148-
mockStrategy:
149-
type: choice
150-
options:
151-
- 'no-mocks'
152-
- 'other-packages'
153-
- 'other-classes'
154-
default: 'other-packages'
155-
staticsMocking:
156-
type: choice
157-
options:
158-
- 'do-not-mock-statics'
159-
- 'mock-statics'
160-
default: 'mock-statics'
161-
162-
jobs:
163-
build:
164-
runs-on: ubuntu-latest
165-
steps:
166-
- name: Checkout
167-
uses: actions/checkout@v2
112+
Step-by-step instruction on how to configure a manual workflow can be found in the [example repository](https://github.com/UnitTestBot/UTBotJava-action-example).
168113

169-
- name: Setup Java
170-
uses: actions/setup-java@v2
171-
with:
172-
distribution: adopt
173-
java-version: 8
174-
175-
- name: Setup Gradle
176-
uses: gradle/gradle-build-action@v2
177-
with:
178-
gradle-version: 6.8
179-
180-
- name: Run test-github-action
181-
uses: Ideaseeker/test-github-action@main
182-
with:
183-
pushTests: ${{ inputs.pushTests }}
184-
generatedTestsRelativeRoot: ${{ inputs.generatedTestsRelativeRoot }}
185-
testFramework: ${{ inputs.testFramework }}
186-
generationTimeout: ${{ inputs.generationTimeout }}
187-
codegenLanguage: ${{ inputs.codegenLanguage }}
188-
mockStrategy: ${{ inputs.mockStrategy }}
189-
staticsMocking: ${{ inputs.staticsMocking }}
190-
```
114+
![image](https://user-images.githubusercontent.com/54814796/176915768-e89bf101-56e6-4303-8b77-485c7ecb5143.png)

0 commit comments

Comments
 (0)