mirror of
https://github.com/firecow/gitlab-ci-local.git
synced 2026-10-16 04:16:55 +02:00
fix(tests): stop leaving artifacts in the working tree (#1907)
build / yamllint (push) Has been cancelled
build / smoke-test (1.2.23, 24) (push) Has been cancelled
build / smoke-test (1.2.23, 25) (push) Has been cancelled
build / smoke-test (1.3.10, 24) (push) Has been cancelled
build / smoke-test (1.3.10, 25) (push) Has been cancelled
build / typecheck (push) Has been cancelled
build / eslint (push) Has been cancelled
build / unused-deps (push) Has been cancelled
build / test (push) Has been cancelled
build / CodeQL (push) Has been cancelled
build / yamllint (push) Has been cancelled
build / smoke-test (1.2.23, 24) (push) Has been cancelled
build / smoke-test (1.2.23, 25) (push) Has been cancelled
build / smoke-test (1.3.10, 24) (push) Has been cancelled
build / smoke-test (1.3.10, 25) (push) Has been cancelled
build / typecheck (push) Has been cancelled
build / eslint (push) Has been cancelled
build / unused-deps (push) Has been cancelled
build / test (push) Has been cancelled
build / CodeQL (push) Has been cancelled
This commit is contained in:
1 parent
555cc4a7c3
commit
bd3c7e2fb9
2 files changed
+9
-1
No files matched your search
@@ -1,5 +1,6 @@
|
||||
/.idea/
|
||||
/node_modules/
|
||||
/.bun/
|
||||
/bin/
|
||||
/ppa/
|
||||
/dist/
|
||||
|
||||
@@ -1,11 +1,18 @@
|
||||
import fs from "fs-extra";
|
||||
import {WriteStreamsMock} from "../../../src/write-streams.js";
|
||||
import {handler} from "../../../src/handler.js";
|
||||
import chalk from "chalk-template";
|
||||
|
||||
const cwd = "tests/test-cases/needs-parallel-matrix-artifacts";
|
||||
|
||||
afterAll(async () => {
|
||||
await Promise.all(["aws", "gcp"].map(provider => fs.rm(`${cwd}/tag-${provider}.txt`, {force: true})));
|
||||
});
|
||||
|
||||
test.concurrent("needs-parallel-matrix-artifacts cascades only the matching producer's artifacts to each consumer permutation", async () => {
|
||||
const writeStreams = new WriteStreamsMock();
|
||||
await handler({
|
||||
cwd: "tests/test-cases/needs-parallel-matrix-artifacts",
|
||||
cwd,
|
||||
shellIsolation: true,
|
||||
stateDir: ".gitlab-ci-local-needs-parallel-matrix-artifacts",
|
||||
}, writeStreams);
|
||||
|
||||
Reference in new issue
Block a user