Compare commits
17
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe9140f8b2 | ||
|
|
81db06000a | ||
|
|
f0a24df8db | ||
|
|
7c0bffb677 | ||
|
|
6fedfd7fa4 | ||
|
|
8725c3c1c6 | ||
|
|
977d0ea9cd | ||
|
|
48247b8730 | ||
|
|
bdee101604 | ||
|
|
7a41cd9e66 | ||
|
|
0d97e79d94 | ||
|
|
50b08a3a22 | ||
|
|
f02e9593c2 | ||
|
|
3a8c29c2df | ||
|
|
e6e3bb41e2 | ||
|
|
b147158840 | ||
|
|
1b970c131f |
@@ -11,9 +11,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Use Node.js 16.15
|
- name: Use Node.js 16.15
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 16.15
|
node-version: 16.15
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|||||||
@@ -25,9 +25,9 @@ jobs:
|
|||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "16"
|
node-version: "16"
|
||||||
|
|
||||||
|
|||||||
@@ -24,10 +24,10 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Check if version has changed
|
- name: Check if version has changed
|
||||||
id: check-version
|
id: check-version
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const version = '${{ inputs.version }}' || require('./lerna.json').version;
|
const version = '${{ inputs.version }}' || require('./lerna.json').version;
|
||||||
@@ -65,9 +65,9 @@ jobs:
|
|||||||
PKG_VERSION: "" # will be set in the workflow
|
PKG_VERSION: "" # will be set in the workflow
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
@@ -80,7 +80,7 @@ jobs:
|
|||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/expressions",
|
"name": "@actions/expressions",
|
||||||
"version": "0.3.12",
|
"version": "0.3.15",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"source": "./src/index.ts",
|
"source": "./src/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/languageserver",
|
"name": "@actions/languageserver",
|
||||||
"version": "0.3.12",
|
"version": "0.3.15",
|
||||||
"description": "Language server for GitHub Actions",
|
"description": "Language server for GitHub Actions",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -43,9 +43,9 @@
|
|||||||
"watch": "tsc --build tsconfig.build.json --watch"
|
"watch": "tsc --build tsconfig.build.json --watch"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/languageservice": "^0.3.12",
|
"@actions/languageservice": "^0.3.15",
|
||||||
"@actions/workflow-parser": "^0.3.12",
|
"@actions/workflow-parser": "^0.3.15",
|
||||||
"@octokit/rest": "^19.0.7",
|
"@octokit/rest": "^20.1.2",
|
||||||
"@octokit/types": "^9.0.0",
|
"@octokit/types": "^9.0.0",
|
||||||
"vscode-languageserver": "^8.0.2",
|
"vscode-languageserver": "^8.0.2",
|
||||||
"vscode-languageserver-textdocument": "^1.0.7",
|
"vscode-languageserver-textdocument": "^1.0.7",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/languageservice",
|
"name": "@actions/languageservice",
|
||||||
"version": "0.3.12",
|
"version": "0.3.15",
|
||||||
"description": "Language service for GitHub Actions",
|
"description": "Language service for GitHub Actions",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -44,8 +44,8 @@
|
|||||||
"watch": "tsc --build tsconfig.build.json --watch"
|
"watch": "tsc --build tsconfig.build.json --watch"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/expressions": "^0.3.12",
|
"@actions/expressions": "^0.3.15",
|
||||||
"@actions/workflow-parser": "^0.3.12",
|
"@actions/workflow-parser": "^0.3.15",
|
||||||
"vscode-languageserver-textdocument": "^1.0.7",
|
"vscode-languageserver-textdocument": "^1.0.7",
|
||||||
"vscode-languageserver-types": "^3.17.2",
|
"vscode-languageserver-types": "^3.17.2",
|
||||||
"vscode-uri": "^3.0.8",
|
"vscode-uri": "^3.0.8",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {promises as fs} from "fs";
|
import {promises as fs} from "fs";
|
||||||
import Webhook from "./webhook.js";
|
import Webhook from "./webhook.js";
|
||||||
|
|
||||||
import schemaImport from "rest-api-description/descriptions/api.github.com/dereferenced/api.github.com.deref.json" assert {type: "json"};
|
import schemaImport from "rest-api-description/descriptions/api.github.com/dereferenced/api.github.com.deref.json";
|
||||||
import {deduplicateWebhooks} from "./deduplicate.js";
|
import {deduplicateWebhooks} from "./deduplicate.js";
|
||||||
const schema = schemaImport as any;
|
const schema = schemaImport as any;
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
const result = await complete(...getPositionFromCursor(input));
|
const result = await complete(...getPositionFromCursor(input));
|
||||||
|
|
||||||
expect(result).not.toBeUndefined();
|
expect(result).not.toBeUndefined();
|
||||||
expect(result.length).toEqual(8);
|
expect(result.length).toEqual(9);
|
||||||
expect(result[0].label).toEqual("concurrency");
|
expect(result[0].label).toEqual("concurrency");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import descriptions from "./descriptions.json" assert {type: "json"};
|
import descriptions from "./descriptions.json";
|
||||||
|
|
||||||
export const RootContext = "root";
|
export const RootContext = "root";
|
||||||
const FunctionContext = "functions";
|
const FunctionContext = "functions";
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import {data, DescriptionDictionary} from "@actions/expressions";
|
|||||||
import webhookObjects from "./objects.json";
|
import webhookObjects from "./objects.json";
|
||||||
import webhooks from "./webhooks.json";
|
import webhooks from "./webhooks.json";
|
||||||
|
|
||||||
import schedule from "./schedule.json" assert {type: "json"};
|
import schedule from "./schedule.json";
|
||||||
import workflow_call from "./workflow_call.json" assert {type: "json"};
|
import workflow_call from "./workflow_call.json";
|
||||||
|
|
||||||
const customEventPayloads: {[name: string]: unknown} = {
|
const customEventPayloads: {[name: string]: unknown} = {
|
||||||
schedule,
|
schedule,
|
||||||
|
|||||||
@@ -21,8 +21,18 @@ describe("end-to-end", () => {
|
|||||||
const result = await complete(...getPositionFromCursor(input));
|
const result = await complete(...getPositionFromCursor(input));
|
||||||
|
|
||||||
expect(result).not.toBeUndefined();
|
expect(result).not.toBeUndefined();
|
||||||
expect(result.length).toEqual(8);
|
expect(result.length).toEqual(9);
|
||||||
const labels = result.map(x => x.label);
|
const labels = result.map(x => x.label);
|
||||||
expect(labels).toEqual(["concurrency", "defaults", "env", "jobs", "name", "on", "permissions", "run-name"]);
|
expect(labels).toEqual([
|
||||||
|
"concurrency",
|
||||||
|
"defaults",
|
||||||
|
"description",
|
||||||
|
"env",
|
||||||
|
"jobs",
|
||||||
|
"name",
|
||||||
|
"on",
|
||||||
|
"permissions",
|
||||||
|
"run-name"
|
||||||
|
]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -6,5 +6,5 @@
|
|||||||
"languageservice",
|
"languageservice",
|
||||||
"languageserver"
|
"languageserver"
|
||||||
],
|
],
|
||||||
"version": "0.3.12"
|
"version": "0.3.15"
|
||||||
}
|
}
|
||||||
Generated
+4114
-2887
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -8,6 +8,6 @@
|
|||||||
"./languageserver"
|
"./languageserver"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"lerna": "^6.0.3"
|
"lerna": "^8.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
Release 0.3.5
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/workflow-parser",
|
"name": "@actions/workflow-parser",
|
||||||
"version": "0.3.12",
|
"version": "0.3.15",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"source": "./src/index.ts",
|
"source": "./src/index.ts",
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
"watch": "tsc --build tsconfig.build.json --watch"
|
"watch": "tsc --build tsconfig.build.json --watch"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/expressions": "^0.3.12",
|
"@actions/expressions": "^0.3.15",
|
||||||
"cronstrue": "^2.21.0",
|
"cronstrue": "^2.21.0",
|
||||||
"yaml": "^2.0.0-8"
|
"yaml": "^2.0.0-8"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"on": "on",
|
"on": "on",
|
||||||
"name": "workflow-name",
|
"name": "workflow-name",
|
||||||
|
"description": "workflow-description",
|
||||||
"run-name": "run-name",
|
"run-name": "run-name",
|
||||||
"defaults": "workflow-defaults",
|
"defaults": "workflow-defaults",
|
||||||
"env": "workflow-env",
|
"env": "workflow-env",
|
||||||
@@ -28,6 +29,7 @@
|
|||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
"name": "workflow-name",
|
"name": "workflow-name",
|
||||||
|
"description": "workflow-description",
|
||||||
"run-name": "run-name",
|
"run-name": "run-name",
|
||||||
"defaults": "workflow-defaults",
|
"defaults": "workflow-defaults",
|
||||||
"env": "workflow-env",
|
"env": "workflow-env",
|
||||||
@@ -44,6 +46,10 @@
|
|||||||
"description": "The name of the workflow that GitHub displays on your repository's 'Actions' tab.\n\n[Documentation](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#name)",
|
"description": "The name of the workflow that GitHub displays on your repository's 'Actions' tab.\n\n[Documentation](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#name)",
|
||||||
"string": {}
|
"string": {}
|
||||||
},
|
},
|
||||||
|
"workflow-description": {
|
||||||
|
"description": "A description for your workflow or reusable workflow",
|
||||||
|
"string": {}
|
||||||
|
},
|
||||||
"run-name": {
|
"run-name": {
|
||||||
"context": [
|
"context": [
|
||||||
"github",
|
"github",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {JSONObjectReader} from "../templates/json-object-reader";
|
import {JSONObjectReader} from "../templates/json-object-reader";
|
||||||
import {TemplateSchema} from "../templates/schema";
|
import {TemplateSchema} from "../templates/schema";
|
||||||
import WorkflowSchema from "../workflow-v1.0.json" assert {type: "json"};
|
import WorkflowSchema from "../workflow-v1.0.json";
|
||||||
|
|
||||||
let schema: TemplateSchema;
|
let schema: TemplateSchema;
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
include-source: false # Drop file/line/col from output
|
||||||
|
---
|
||||||
|
description: My workflow description
|
||||||
|
on: push
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: echo hi
|
||||||
|
---
|
||||||
|
{
|
||||||
|
"jobs": [
|
||||||
|
{
|
||||||
|
"type": "job",
|
||||||
|
"id": "build",
|
||||||
|
"name": "build",
|
||||||
|
"if": {
|
||||||
|
"type": 3,
|
||||||
|
"expr": "success()"
|
||||||
|
},
|
||||||
|
"runs-on": "ubuntu-latest",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"id": "__run",
|
||||||
|
"if": {
|
||||||
|
"type": 3,
|
||||||
|
"expr": "success()"
|
||||||
|
},
|
||||||
|
"run": "echo hi"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user