Skip to content

Commit

Permalink
⚙️Update deno to latest (#282)
Browse files Browse the repository at this point in the history
* Start work for issue #281

* config: deno task updated

* ide: remove launch config

* ide: remove vscode task

* ci: update steps to use deno task

* ci: remove unused deno check script

* deps: update deno lock

* ci: change triggers

* ci: remove unnecessary workflow

* ci: update workflow run names

* ci: force status checks
  • Loading branch information
CalvinWilkinson authored Aug 23, 2024
1 parent 9a5694b commit 674f260
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 178 deletions.
92 changes: 0 additions & 92 deletions .github/cicd/scripts/deno-check.ts

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/add-new-item-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defaults:


on:
pull_request_target:
pull_request:
types: opened
branches: [main, renovate/*]

Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/build-cicd-status-check.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/build-csharp-status-check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ✅Build CSharp Status Check
run-name: ✅Build CSharp Status Check (${{ github.base_ref }} branch)
run-name: ✅Build CSharp Status Check


defaults:
Expand All @@ -8,7 +8,7 @@ defaults:


on:
pull_request_target:
pull_request:
branches: main


Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-docs-status-check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ✅Build Docs Status Check
run-name: ✅Build Docs Status Check (${{ github.base_ref }} branch)
run-name: ✅Build Docs Status Check


defaults:
Expand All @@ -8,7 +8,7 @@ defaults:


on:
pull_request_target:
pull_request:
branches: main


Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/cicd-build-status-check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ✅CICD Build Status Check
run-name: ✅CICD Build Status Check (${{ github.base_ref }} branch)
run-name: ✅CICD Build Status Check


defaults:
Expand All @@ -8,7 +8,7 @@ defaults:


on:
pull_request_target:
pull_request:
branches: main


Expand All @@ -28,5 +28,4 @@ jobs:
deno-version: ${{ vars.DENO_VERSION }}

- name: Run Build
run: |
deno run --allow-read --allow-run "./.github/cicd/scripts/deno-check.ts";
run: deno task build;
4 changes: 2 additions & 2 deletions .github/workflows/cicd-lint-status-check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ✅CICD Lint Status Check
run-name: ✅CICD Lint Status Check (${{ github.base_ref }} branch)
run-name: ✅CICD Lint Status Check


defaults:
Expand All @@ -8,7 +8,7 @@ defaults:


on:
pull_request_target:
pull_request:
branches: main


Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/feature-branch-status-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defaults:


on:
pull_request_target:
pull_request:
branches: main


Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-pr-to-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defaults:


on:
pull_request_target:
pull_request:
types: opened
issue_comment: # This event is triggered when creating issue and pr comments
types: created
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-status-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defaults:


on:
pull_request_target:
pull_request:
branches: [main, preview]


Expand Down
17 changes: 0 additions & 17 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,23 +173,6 @@
"attachSimplePort": 9229,
"console": "integratedTerminal"
},
{ // DENO CHECK ALL FILES
"request": "launch",
"name": "Deno Check All Files",
"type": "node",
"program": "${workspaceFolder}/.github/cicd/scripts/deno-check.ts",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "${userHome}/.deno/bin/deno.EXE",
"runtimeArgs": [
"run",
"--inspect-wait",
"--allow-read",
"--allow-run",
"--allow-sys",
],
"attachSimplePort": 9229,
"console": "integratedTerminal"
},
{ // UPDATE VELAPTOR NUGET PACKAGES
"request": "launch",
"name": "Update Velaptor NuGet Packages",
Expand Down
17 changes: 0 additions & 17 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,23 +146,6 @@
]
}
},
{ // BUILD ALL FILES
"label": "Build (Deno Check)",
"detail": "Builds the project by running deno check on all files in the project.",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}/.github/cicd"
},
"command": "deno",
"args": [
"run",
"--allow-read",
"--allow-run",
"--allow-sys",
"--allow-env",
"${workspaceFolder}/.github/cicd/scripts/deno-check.ts",
]
},
{ // UPDATE VELAPTOR NUGET PACKAGES
"label": "Update Velaptor NuGet Packages",
"detail": "Updates all of the Velaptor NuGet packages for all guide projects.",
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"tasks": {
"build": "deno run --allow-read --allow-env --allow-sys --allow-run ./scripts/deno-check.ts"
"build": "deno check '.github/cicd/core/**/*.ts'"
},
"fmt": {
"include": [".github/cicd/**/*.ts"],
Expand Down
8 changes: 4 additions & 4 deletions deno.lock

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

0 comments on commit 674f260

Please sign in to comment.