Skip to content

Commit

Permalink
docs: example for custom image with test_pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Apr 10, 2024
1 parent f605eb3 commit de6cabb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/test_pnpm.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,24 @@ No secrets.

## Example Usage

Run commands directly on `ubuntu-latest` machine.

```yaml
jobs:
frontend-tests:
uses: hotosm/gh-workflows/.github/workflows/test_pnpm.yml@main
with:
working_dir: src/frontend
```
Run using a custom container. For example Playwright:
```yaml
jobs:
frontend-tests:
uses: hotosm/gh-workflows/.github/workflows/test_pnpm.yml@main
with:
container_config: '{"image": "mcr.microsoft.com/playwright:v1.43.0"}'
working_dir: src/frontend
run_command: "test:e2e"
```

0 comments on commit de6cabb

Please sign in to comment.