@@ -101,3 +101,89 @@ jobs:
101101 forceStaticMocking: 'do-not-force'
102102 classesToMockAlways: '[java.util.Random]'
103103` ` `
104+
105+ # # Manual trigger configuration
106+
107+ You can create a workflow that are manually triggered with the `workflow_dispatch` event.
108+
109+ You will then see a `Run workflow` button on the Actions tab, enabling you to easily trigger a run.
110+
111+ 
112+
113+
114+ __Workflow example:__
115+
116+ ` ` ` YAML
117+ name: "Run UTBotJava-action"
118+
119+ on:
120+ workflow_dispatch:
121+ inputs:
122+ pushTests:
123+ description: "Push generated tests to the repository"
124+ type: boolean
125+ default: true
126+ generatedTestsRelativeRoot:
127+ description: "Relative path to the root of the tests"
128+ type: string
129+ default: '.utbot/test'
130+ testFramework:
131+ type: choice
132+ options:
133+ - junit4
134+ - junit5
135+ - testng
136+ default: 'junit5'
137+ generationTimeout:
138+ description: "Time budget for one class (ms)"
139+ type: string
140+ default: '60000'
141+ codegenLanguage:
142+ type: choice
143+ options:
144+ - java
145+ - kotlin
146+ default: java
147+ mockStrategy:
148+ type: choice
149+ options:
150+ - 'no-mocks'
151+ - 'other-packages'
152+ - 'other-classes'
153+ default: 'other-packages'
154+ staticsMocking:
155+ type: choice
156+ options:
157+ - 'do-not-mock-statics'
158+ - 'mock-statics'
159+ default: 'mock-statics'
160+
161+ jobs:
162+ build:
163+ runs-on: ubuntu-latest
164+ steps:
165+ - name: Checkout
166+ uses: actions/checkout@v2
167+
168+ - name: Setup Java
169+ uses: actions/setup-java@v2
170+ with:
171+ distribution: adopt
172+ java-version: 8
173+
174+ - name: Setup Gradle
175+ uses: gradle/gradle-build-action@v2
176+ with:
177+ gradle-version: 6.8
178+
179+ - name: Run test-github-action
180+ uses: Ideaseeker/test-github-action@main
181+ with:
182+ pushTests: ${{ inputs.pushTests }}
183+ generatedTestsRelativeRoot: ${{ inputs.generatedTestsRelativeRoot }}
184+ testFramework: ${{ inputs.testFramework }}
185+ generationTimeout: ${{ inputs.generationTimeout }}
186+ codegenLanguage: ${{ inputs.codegenLanguage }}
187+ mockStrategy: ${{ inputs.mockStrategy }}
188+ staticsMocking: ${{ inputs.staticsMocking }}
189+ ` ` `
0 commit comments