-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(*): Put all steps in the action
- Loading branch information
1 parent
8000754
commit adccabb
Showing
3 changed files
with
71 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,29 @@ DDEV version that will be installed before your tests. | |
|
||
Default: `stable`. | ||
|
||
Allowed values are: `stable`, `HEAD`, `edge`. | ||
Allowed values are: `stable`, `HEAD`. | ||
|
||
--- | ||
|
||
- `debug_enabled` | ||
|
||
If `true`, a tmate session will be accessible before the tests step. See [action-tmate](https://github.com/mxschmitt/action-tmate) for more details. | ||
|
||
|
||
Default: `false`. | ||
|
||
--- | ||
|
||
|
||
- `token` (_String_) | ||
|
||
A GitHub PAT required for the debug step. | ||
|
||
A simple value could be: `${{ secrets.GITHUB_TOKEN }}`. | ||
|
||
--- | ||
|
||
|
||
|
||
|
||
## Usage | ||
|
@@ -107,20 +129,9 @@ jobs: | |
- uses: julienloizelet/[email protected] | ||
with: | ||
ddev_version: ${{ matrix.ddev_version }} | ||
- name: tmate debugging session | ||
uses: mxschmitt/action-tmate@v3 | ||
with: | ||
limit-access-to-actor: true | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
if: github.event.inputs.debug_enabled == 'true' | ||
- name: tests | ||
run: bats tests | ||
- uses: gautamkrishnar/keepalive-workflow@v1 | ||
if: matrix.ddev_version == 'stable' | ||
ddev_version: ${{ matrix.ddev_version }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
debug_enabled: false | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters