Commit 2eeaafa
authored
fix: use api endpoint for snapshots data (#110)
* fix: use api endpoint for snapshots data
Fixes #109.
* chore(ci): use built binary in test-action
Previously, we had a run of the action in the `test` job that used the
built binary (`no-install`), then we had a run of the action in
`test-action` (per os) that installed the latest release.
The benefit here was that the run in `test` exercised a built binary in
the context of the action, and the runs `test-action` exercised the
install step on each os. The downside is that if there is a problem with
the currently-released version (as there is right now), the
`test-action` runs will fail. Since we have strict status checks on PRs,
this makes it difficult to address that latest release.
This commit addresses the downside while losing that upside: it makes
the installation steps become untested. I think that's acceptable
because the bulk of the logic is provided by a 3rd-party action
(`pbrisbin/setup-tool-action`) which has its own test suite. Querying
for "latest" is the only logic truly becoming untested (for now).
* Revert "chore(ci): use built binary in test-action"
This reverts commit dc75a78.
* fix(ci): test installation only in test-action
Running SLED in the context of an action is already tested as a step in
the `test` job. `test-action` exists to test the (os-specific)
installation steps, so it installs the latest release. Sometimes (as is
the case now) there is a problem with that release which can cause
`test-action` to fail. This can make it hard to merge the PR that is
fixing things, since that status is required.
By adding a `run` input and not actually running the tool in
`test-action`, we can avoid this scenario by making the test only test
what it cares about, and so be more robust to false failures like this.1 parent 626f9ca commit 2eeaafa
File tree
3 files changed
+16
-3
lines changed- .github/workflows
- src/SLED/Stackage
3 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
39 | | - | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| |||
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
62 | | - | |
| 68 | + | |
| 69 | + | |
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
0 commit comments