Commit c36b58f
authored
Fix cache key in nx-integration-tests using undefined inputs.ref (#379)
The integration-tests job restored the project cache with:
key: ${{ runner.os }}-project-${{ inputs.ref }}
But `inputs.ref` is not a defined input for this workflow — the
declared inputs are `repository`, `pr_head`, and `pr_base`. The
expression resolved to an empty string, producing the key
`Linux-project-` on every run, which never matched the entry saved
by the nx-project-setup job (which used `inputs.pr_head` as the
ref throughout).
The result was a guaranteed cache miss on any fresh PR run: the
`./main` directory was empty when the integration-tests job started,
the PHPUnit bootstrap fell back to running `setup:install` against
a `tmp-mysql` container that had never been initialised, and the
entire suite crashed at bootstrap before a single test executed.
Fix: replace `inputs.ref` with `inputs.pr_head`, consistent with
every other place in this workflow that references the head SHA.1 parent 679f125 commit c36b58f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
0 commit comments