gitlab-ci-local 4.65.1 → 4.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -19
- package/dist/index.js +340 -0
- package/dist/index.js.map +480 -0
- package/package.json +26 -80
- package/src/argv.js +0 -307
- package/src/commander.js +0 -247
- package/src/data-expander.js +0 -220
- package/src/executor.js +0 -104
- package/src/git-data.js +0 -168
- package/src/gitlab-preset.js +0 -24
- package/src/global.js +0 -40
- package/src/handler.js +0 -119
- package/src/index.js +0 -364
- package/src/job.js +0 -1463
- package/src/mutex.js +0 -20
- package/src/parallel.js +0 -46
- package/src/parser-includes.js +0 -387
- package/src/parser.js +0 -357
- package/src/predefined-variables.js +0 -67
- package/src/producers.js +0 -42
- package/src/schema/index.js +0 -19
- package/src/schema/schema.js +0 -3190
- package/src/schema-error.js +0 -114
- package/src/state.js +0 -22
- package/src/utils.js +0 -485
- package/src/validator.js +0 -151
- package/src/variables-from-files.js +0 -143
- package/src/write-streams.js +0 -51
package/README.md
CHANGED
|
@@ -99,6 +99,12 @@ paru -S gitlab-ci-local
|
|
|
99
99
|
npm install -g gitlab-ci-local
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
+
### Bun
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
bun install -g gitlab-ci-local
|
|
106
|
+
```
|
|
107
|
+
|
|
102
108
|
### Macos
|
|
103
109
|
|
|
104
110
|
*bash version must be above or equal 4.x.x*
|
|
@@ -115,7 +121,7 @@ brew install gitlab-ci-local
|
|
|
115
121
|
Download and put binary in `C:\Program Files\Git\mingw64\bin`
|
|
116
122
|
|
|
117
123
|
```bash
|
|
118
|
-
curl -L https://github.com/firecow/gitlab-ci-local/releases/latest/download/
|
|
124
|
+
curl -L https://github.com/firecow/gitlab-ci-local/releases/latest/download/gitlab-ci-local-windows-amd64.zip -o gcl.zip && unzip -o gcl.zip -d /c/Program\ Files/Git/mingw64/bin && rm gcl.zip
|
|
119
125
|
```
|
|
120
126
|
|
|
121
127
|
Executing `gitlab-ci-local` with `--variable MSYS_NO_PATHCONV=1` can be useful in certain situations
|
|
@@ -401,40 +407,35 @@ CI_SERVER_SHELL_SSH_PORT: 8022
|
|
|
401
407
|
|
|
402
408
|
## Development
|
|
403
409
|
|
|
404
|
-
You need
|
|
410
|
+
You need [bun](https://bun.sh/) installed.
|
|
405
411
|
|
|
406
412
|
### Scripts
|
|
407
413
|
|
|
408
414
|
```bash
|
|
409
|
-
# Install
|
|
410
|
-
|
|
415
|
+
# Install dependencies
|
|
416
|
+
bun install
|
|
411
417
|
|
|
412
418
|
# Run all tests
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
# Run the program with hot-reloading enabled using the `.gitlab-ci.yml` in the root directory
|
|
416
|
-
npm run dev
|
|
417
|
-
|
|
418
|
-
# Pass --help flag into the program
|
|
419
|
-
npm run dev -- -- --help # (equivalent of gitlab-ci-local --help)
|
|
419
|
+
bun test
|
|
420
420
|
|
|
421
421
|
# Run individual test-case
|
|
422
|
-
|
|
422
|
+
bun test tests/test-cases/cache-paths-not-array
|
|
423
423
|
```
|
|
424
424
|
|
|
425
425
|

|
|
426
426
|
|
|
427
|
-
It's also possible to run individual `.gitlab-ci.yml`, via `
|
|
427
|
+
It's also possible to run individual `.gitlab-ci.yml`, via `bun src/index.ts --cwd examples/docker-compose-nodejs`
|
|
428
428
|
|
|
429
429
|
## Creating single executable binaries from source
|
|
430
430
|
```bash
|
|
431
|
-
|
|
432
|
-
npm run esbuild
|
|
431
|
+
bun install
|
|
433
432
|
|
|
434
433
|
# According to your needs:
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
434
|
+
bun build:linux-amd64
|
|
435
|
+
bun build:linux-arm64
|
|
436
|
+
bun build:win
|
|
437
|
+
bun build:macos-x64
|
|
438
|
+
bun build:macos-arm64
|
|
439
|
+
bun build-all
|
|
439
440
|
# the binary will be generated in the respective ./bin/<os>/gitlab-ci-local
|
|
440
441
|
```
|