Merge branch 'main' into cschleiden/support-env-secrets

This commit is contained in:
Christopher Schleiden
2023-01-06 14:45:46 -08:00
committed by GitHub
6 changed files with 39 additions and 13 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@github/actions-languageserver",
"version": "0.1.68",
"version": "0.1.69",
"description": "Language server for GitHub Actions",
"license": "MIT",
"type": "module",
@@ -38,7 +38,7 @@
"prettier-fix": "prettier --write ."
},
"dependencies": {
"@github/actions-languageservice": "^0.1.68",
"@github/actions-languageservice": "^0.1.69",
"@github/actions-workflow-parser": "*",
"@octokit/rest": "^19.0.5",
"vscode-languageserver": "^8.0.2",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@github/actions-languageservice",
"version": "0.1.68",
"version": "0.1.69",
"description": "Language service for GitHub Actions",
"license": "MIT",
"type": "module",
+26
View File
@@ -25,6 +25,32 @@ jobs:
expect(result?.contents).toEqual("Runs your workflow when you push a commit or tag.");
});
it("on a parameter with a description", async () => {
const input = `on: push
jobs:
build:
co|ntinue-on-error: false`;
const result = await hover(...getPositionFromCursor(input));
expect(result).not.toBeUndefined();
expect(result?.contents).toEqual(
"Prevents a workflow run from failing when a job fails. Set to true to allow a workflow run to pass when this job fails.\n\n" +
"**Context:** github, inputs, vars, needs, strategy, matrix"
);
});
it("on a parameter with its own type", async () => {
const input = `on: push
jobs:
build:
pe|rmissions: read-all`;
const result = await hover(...getPositionFromCursor(input));
expect(result).not.toBeUndefined();
expect(result?.contents).toEqual(
"You can modify the default permissions granted to the GITHUB_TOKEN, adding or removing access as required, so that you only allow the minimum required access."
);
});
it("on a value in a sequence", async () => {
const input = `on: [pull_request,
pu|sh]
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "browser-playground",
"version": "0.1.68",
"version": "0.1.69",
"description": "",
"private": true,
"main": "index.js",
"type": "module",
"dependencies": {
"@github/actions-languageserver": "^0.1.68",
"@github/actions-languageserver": "^0.1.69",
"monaco-editor-webpack-plugin": "^7.0.1",
"monaco-editor-workers": "^0.34.2",
"monaco-languageclient": "^4.0.3",
+1 -1
View File
@@ -1,5 +1,5 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useWorkspaces": true,
"version": "0.1.68"
"version": "0.1.69"
}
+7 -7
View File
@@ -16,10 +16,10 @@
},
"actions-languageserver": {
"name": "@github/actions-languageserver",
"version": "0.1.68",
"version": "0.1.69",
"license": "MIT",
"dependencies": {
"@github/actions-languageservice": "^0.1.68",
"@github/actions-languageservice": "^0.1.69",
"@github/actions-workflow-parser": "*",
"@octokit/rest": "^19.0.5",
"vscode-languageserver": "^8.0.2",
@@ -41,7 +41,7 @@
},
"actions-languageservice": {
"name": "@github/actions-languageservice",
"version": "0.1.68",
"version": "0.1.69",
"license": "MIT",
"dependencies": {
"@github/actions-expressions": "*",
@@ -63,10 +63,10 @@
}
},
"browser-playground": {
"version": "0.1.68",
"version": "0.1.69",
"license": "MIT",
"dependencies": {
"@github/actions-languageserver": "^0.1.68",
"@github/actions-languageserver": "^0.1.69",
"monaco-editor-webpack-plugin": "^7.0.1",
"monaco-editor-workers": "^0.34.2",
"monaco-languageclient": "^4.0.3",
@@ -13533,7 +13533,7 @@
"@github/actions-languageserver": {
"version": "file:actions-languageserver",
"requires": {
"@github/actions-languageservice": "^0.1.68",
"@github/actions-languageservice": "^0.1.69",
"@github/actions-workflow-parser": "*",
"@octokit/rest": "^19.0.5",
"@types/jest": "^29.0.3",
@@ -16320,7 +16320,7 @@
"browser-playground": {
"version": "file:browser-playground",
"requires": {
"@github/actions-languageserver": "^0.1.68",
"@github/actions-languageserver": "^0.1.69",
"css-loader": "^6.7.2",
"monaco-editor-webpack-plugin": "^7.0.1",
"monaco-editor-workers": "^0.34.2",