test devcontainer image #2
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
name: 'test devcontainer image' | |
on: | |
# can only be triggered manually | |
workflow_dispatch: | |
inputs: | |
additionalTestCmd: | |
description: 'A shell expression to run after the default test commands' | |
required: true | |
default: 'echo "WP_ENV_HOME=${WP_ENV_HOME} !"' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout (GitHub) | |
uses: actions/checkout@v4 | |
- name: use devcontainer image | |
uses: devcontainers/ci@v0.3 | |
with: | |
# name of the image to use | |
imageName: ghcr.io/lgersman/devcontainer-boilerplate | |
runCmd: | | |
pnpm install | |
pnpm build | |
${{ github.event.inputs.additionalTestCmd }} | |