-
-
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(*): Add tmate and run test steps in actions (#5)
* feat(*): Put all steps in the action * feat(*): Prepare release v0.2.0 * feat(*): Remove keepalive action as it does not work here * feat(*): Rename action
- Loading branch information
1 parent
8000754
commit d47b8a9
Showing
4 changed files
with
82 additions
and
41 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
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ _We will suppose here that you want to test your add-on with the stable version | |
You can add the following step in your workflow: | ||
|
||
```yaml | ||
- uses: julienloizelet/ddev-add-on-test-init@v0.1.0 | ||
- uses: julienloizelet/ddev-add-on-test@v0.2.0 | ||
with: | ||
ddev_version: "stable" | ||
``` | ||
|
@@ -49,7 +49,27 @@ 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 | ||
|
@@ -105,22 +125,16 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: julienloizelet/[email protected] | ||
with: | ||
ddev_version: ${{ matrix.ddev_version }} | ||
- name: tmate debugging session | ||
uses: mxschmitt/action-tmate@v3 | ||
- uses: julienloizelet/[email protected] | ||
with: | ||
limit-access-to-actor: true | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
if: github.event.inputs.debug_enabled == 'true' | ||
- name: tests | ||
run: bats tests | ||
ddev_version: ${{ matrix.ddev_version }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
debug_enabled: ${{ github.event.inputs.debug_enabled }} | ||
# keepalive-workflow adds a dummy commit if there's no other action here, keeps | ||
# GitHub from turning off tests after 60 days | ||
- uses: gautamkrishnar/keepalive-workflow@v1 | ||
if: matrix.ddev_version == 'stable' | ||
if: matrix.ddev_version == 'stable' | ||
``` | ||
|
||
|
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