devcontainers / devcontainers/cli

Add smoke test against Dependabot integration

Offen
#732 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
feature-request
Vorherrschende Sprache
TypeScript
Sterne
3k
Forks
457
Ø Merge
13 Std. 17 Min.
Gemergte PRs (30 T.)
6

Beschreibung

Now that the CLI is coupled to the [dependabot integration ](https://containers.dev/guide/dependabot), it would be great to have an automated PR check to confirm changes are compatible. The `devcontainer outdated`, `devcontainer features info`, and `devcontainer upgrade` commands are all utilized in the [dependabot core implementation](https://github.com/dependabot/dependabot-core/pull/8445)

This should be fairly straightforward to create a test for, given that the project is highly containerized. The [dev container ecosystem container](https://github.com/dependabot/dependabot-core/pkgs/container/dependabot-updater-devcontainers) can be rebuilt using the dev build of the CLI:

The dependabot CLI can then be utilized to run a sanity check:

```
LOCAL_GITHUB_ACCESS_TOKEN="$LOCAL_GITHUB_ACCESS_TOKEN" dependabot \
--updater-image ghcr.io/dependabot/dependabot-updater-devcontainers \
update \
devcontainers \
joshspicer/versioning-project-two-configs \
-o /tmp/updates.yaml \
--directory /

updater | +-----------------------------------------------------------------------+
updater | | Changes to Dependabot Pull Requests |
updater | +---------+-------------------------------------------------------------+
updater | | created | ghcr.io/codspace/versioning/foo:1 ( from 1.1.0 to 2.11.1 ) |
updater | | created | ghcr.io/codspace/versioning/baz:1.0 ( from 1.0.0 to 2.0.0 ) |
updater | +---------+-------------------------------------------------------------+
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.