aboutsummaryrefslogtreecommitdiff
path: root/test/git-lfs/scenarios.json
diff options
context:
space:
mode:
authorJosh Spicer <joshspicer@github.com>2023-04-04 16:47:04 +0300
committerGitHub <noreply@github.com>2023-04-04 16:47:04 +0300
commit2952d87f1db5681330db025e17ab4357a1bdc275 (patch)
tree5995fa11175a7ef1b49c497d400e4d6aa39034d4 /test/git-lfs/scenarios.json
parent1118b992d970b53d92b3379a5b05de7738f3dc8b (diff)
add a postCreateCommand to `git-lfs` Feature (#511)feature_git-lfs_1.1.0
* add a postCreateCommand to git-lfs Feature * debug passing locally but not in CI * update scenario * add GIT_LFS_SKIP_SMUDGE=1 to prevent fetching lfs arifacts in github actions * arguments should be booleans * move example repo to devcontainers org * place script literally anywhere other than /tmp
Diffstat (limited to 'test/git-lfs/scenarios.json')
-rw-r--r--test/git-lfs/scenarios.json22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/git-lfs/scenarios.json b/test/git-lfs/scenarios.json
new file mode 100644
index 0000000..6cc3c24
--- /dev/null
+++ b/test/git-lfs/scenarios.json
@@ -0,0 +1,22 @@
+{
+ "autoPullEnabled": {
+ "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
+ "initializeCommand": "(GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/devcontainers/git-lfs-example /tmp/testRepo-1 || true) && (cp -r /tmp/testRepo-1/.git* . && cp -r /tmp/testRepo-1/* .)",
+ "remoteUser": "vscode",
+ "features": {
+ "git-lfs": {
+ "autoPull": true
+ }
+ }
+ },
+ "autoPullDisabled": {
+ "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
+ "initializeCommand": "(GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/devcontainers/git-lfs-example /tmp/testRepo-2 || true) && (cp -r /tmp/testRepo-2/.git* . && cp -r /tmp/testRepo-2/* .)",
+ "remoteUser": "vscode",
+ "features": {
+ "git-lfs": {
+ "autoPull": false
+ }
+ }
+ }
+} \ No newline at end of file