Skip to content

Commit

Permalink
Release 4.56.0
Browse files Browse the repository at this point in the history
  • Loading branch information
firecow committed Nov 23, 2024
1 parent c7dca6a commit 96342d9
Show file tree
Hide file tree
Showing 7 changed files with 2,459 additions and 2,453 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"description": "Tired of pushing to test your .gitlab-ci.yml?",
"main": "src/index.js",
"bin": "src/index.js",
"version": "4.55.0",
"version": "4.56.0",
"scripts": {
"esbuild": "esbuild src/index.ts --outfile=bin/index.cjs --bundle --platform=node --format=cjs --minify --external:yargs --external:re2 --sourcemap=inline",
"pkg-linux": "npx tsx scripts/install-re2-bin.ts --platform linux --platform-arch=x64 && pkg bin/index.cjs --public --options=enable-source-maps --no-bytecode -t node20-linux-x64 -o bin/linux/gitlab-ci-local && chmod +x bin/linux/gitlab-ci-local && gzip -c bin/linux/gitlab-ci-local > bin/linux.gz",
"pkg-macos": "npx tsx scripts/install-re2-bin.ts --platform darwin --platform-arch=x64 && pkg bin/index.cjs --public --options=enable-source-maps --no-bytecode -t node20-macos-x64 -o bin/macos/gitlab-ci-local && gzip -c bin/macos/gitlab-ci-local > bin/macos.gz",
"pkg-win": "npx tsx scripts/install-re2-bin.ts --platform win32 --platform-arch=x64 && pkg bin/index.cjs --public --options=enable-source-maps --no-bytecode -t node20-win-x64 -o bin/win/gitlab-ci-local && gzip -c bin/win/gitlab-ci-local.exe > bin/win.gz",
"pkg-linux": "npx tsx scripts/install-re2-bin.ts --platform linux --platform-arch=x64 && pkg bin/index.cjs --public --options=enable-source-maps --no-bytecode -t linux-x64 -o bin/linux/gitlab-ci-local && chmod +x bin/linux/gitlab-ci-local && gzip -c bin/linux/gitlab-ci-local > bin/linux.gz",
"pkg-macos": "npx tsx scripts/install-re2-bin.ts --platform darwin --platform-arch=x64 && pkg bin/index.cjs --public --options=enable-source-maps --no-bytecode -t macos-x64 -o bin/macos/gitlab-ci-local && gzip -c bin/macos/gitlab-ci-local > bin/macos.gz",
"pkg-win": "npx tsx scripts/install-re2-bin.ts --platform win32 --platform-arch=x64 && pkg bin/index.cjs --public --options=enable-source-maps --no-bytecode -t win-x64 -o bin/win/gitlab-ci-local && gzip -c bin/win/gitlab-ci-local.exe > bin/win.gz",
"pkg-all": "npm run pkg-linux && npm run pkg-macos && npm run pkg-win && npm ci",
"cleanup": "git clean -fX tests/ && git clean -fX src/",
"build": " npm run cleanup && tsc",
Expand All @@ -25,7 +25,7 @@
},
"dependencies": {
"ajv": "8.x.x",
"axios": "^1.7.7",
"axios": "1.x.x",
"base64url": "3.x.x",
"camelcase": "6.x.x",
"chalk": "4.x.x",
Expand All @@ -36,8 +36,8 @@
"fs-extra": "11.x.x",
"globby": "11.x.x",
"js-yaml": "4.x.x",
"jsonpointer": "^5.0.1",
"micromatch": "^4.0.7",
"jsonpointer": "5.x.x",
"micromatch": "4.x.x",
"object-traversal": "1.x.x",
"p-map": "4.x.x",
"pretty-hrtime": "1.x.x",
Expand All @@ -54,7 +54,7 @@
"@types/fs-extra": "11.x.x",
"@types/jest-when": "3.x.x",
"@types/js-yaml": "4.x.x",
"@types/micromatch": "^4.0.7",
"@types/micromatch": "4.x.x",
"@types/node": "22.x",
"@types/pretty-hrtime": "1.x.x",
"@types/split2": "4.x.x",
Expand All @@ -64,13 +64,13 @@
"@yao-pkg/pkg": "^6.0.0",
"axios-mock-adapter": "2.x",
"depcheck": "1.x.x",
"esbuild": "^0.24.0",
"esbuild": "0.24.x",
"eslint": "8.x.x",
"jest": "29.x.x",
"jest-when": "3.x.x",
"nodemon": "^3.1.1",
"nodemon": "3.x.x",
"ts-jest": "29.x.x",
"tsx": "^4.19.1",
"tsx": "4.x.x",
"typescript": "5.x.x"
},
"engines": {
Expand All @@ -79,7 +79,7 @@
"pkg": {
"assets": [
"package.json",
"src/schema/schema.json"
"**/src/schema/schema.json"
],
"scripts": [
"src/**/*.js"
Expand Down
9 changes: 7 additions & 2 deletions scripts/install-re2-bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@ const main = async () => {
choices: ["x64", "arm64"],
demandOption: true,
})
.option("platformABI", {
type: "string",
choices: ["127", "115"],
default: "127",
demandOption: true,
})
.argv;

const {platform, platformArch} = argv;
const platformABI = process.versions.modules;
const {platform, platformArch, platformABI} = argv;
const re2Version = JSON.parse(fs.readFileSync("./node_modules/re2/package.json", "utf8")).version;
const url = `https://github.com/uhop/node-re2/releases/download/${re2Version}/${platform}-${platformArch}-${platformABI}.gz`;

Expand Down
5 changes: 1 addition & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env node
import chalk from "chalk";
import {readFileSync} from "fs";
import yargs from "yargs";
import {Parser} from "./parser.js";
import * as state from "./state.js";
Expand All @@ -14,8 +13,6 @@ import {GitlabRunnerPresetValues} from "./gitlab-preset.js";

const jobs: Job[] = [];

const version = JSON.parse(readFileSync("package.json", "utf8"))["version"];

process.on("SIGINT", async (_: string, code: number) => {
await cleanupJobResources(jobs);
process.exit(code);
Expand All @@ -28,7 +25,7 @@ process.on("SIGUSR2", async () => await cleanupJobResources(jobs));
const yparser = yargs(process.argv.slice(2));
yparser.parserConfiguration({"greedy-arrays": false})
.showHelpOnFail(false)
.version(version)
.version("4.56.0")
.wrap(yparser.terminalWidth?.())
.command({
handler: async (argv) => {
Expand Down
10 changes: 7 additions & 3 deletions src/schema/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import {readFileSync} from "fs";
const schema: any = JSON.parse(readFileSync("src/schema/schema.json", "utf8"));
/* eslint-disable @typescript-eslint/ban-ts-comment */
import {schema} from "./schema.js";

// @ts-ignore
schema.definitions.job_template.properties.gclInjectSSHAgent = {
"type": "boolean",
};
// @ts-ignore
schema.definitions.job_template.properties.gclInteractive = {
"type": "boolean",
};
// @ts-ignore
schema.definitions.job_template.properties.gclArtifactsToSource = {
"type": "boolean",
};

// @ts-ignore
schema.definitions.job_template.properties.gclDescription = {
"type": "string",
};
Expand Down
Loading

0 comments on commit 96342d9

Please sign in to comment.