@@ -247,12 +247,21 @@ jobs:
247247 - run: bashunit tests
248248```
249249
250- ** Inputs:** ` version ` (default ` latest ` ), ` directory ` (default ` lib ` ), ` add-to-path ` (default ` true ` ), ` verify-checksum ` (default ` true ` ).
251- ** Outputs:** ` path ` (binary path relative to the workspace), ` version ` (installed version).
252-
253- ` verify-checksum ` validates the downloaded binary against the release ` checksum `
254- asset (sha256) and fails the install on any mismatch. Set it to ` false ` only when
255- pinning a release published before checksum assets existed.
250+ ``` yaml-vue [install + run]
251+ # .github/workflows/bashunit-tests.yml
252+ name: Tests
253+ on: [pull_request, push]
254+ jobs:
255+ tests:
256+ runs-on: ubuntu-latest
257+ steps:
258+ - uses: actions/checkout@v4
259+ # Install and run the suite in a single step via the `args` input.
260+ - uses: TypedDevs/bashunit@<commit-sha> # {{ pkg.version }}
261+ with:
262+ version: '{{ pkg.version }}'
263+ args: tests/ --strict
264+ ```
256265
257266``` yaml [via install.sh]
258267# .github/workflows/bashunit-tests.yml
@@ -283,6 +292,13 @@ jobs:
283292` ` `
284293:::
285294
295+ **Inputs:** ` version` (default `latest`), `directory` (default `lib`), `add-to-path` (default `true`), `verify-checksum` (default `true`), `args` (default empty — when set, runs `bashunit <args>` after installing).
296+ **Outputs:** `path` (binary path relative to the workspace), `version` (installed version).
297+
298+ ` verify-checksum` validates the downloaded binary against the release `checksum`
299+ asset (sha256) and fails the install on any mismatch. Set it to `false` only when
300+ pinning a release published before checksum assets existed.
301+
286302:: : tip
287303See bashunit's own pipeline for a real example : https://github.com/TypedDevs/bashunit/blob/main/.github/workflows/tests.yml
288304:: :
0 commit comments