-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
18 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,23 +81,27 @@ jobs: | |
Join-String -Separator ', ' | ||
)" -ErrorAction 'Stop' | ||
} | ||
- name: "Verify Code" | ||
if: "${{!cancelled() && steps.analyze.outcome == 'success'}}" | ||
shell: "pwsh" | ||
- name: "Build Repository" | ||
if: "${{!cancelled() && steps.analyze.outcome == 'success' && steps.analyze.outputs.build == 'true'}}" | ||
run: |- | ||
[String[]]$Files = Get-ChildItem -LiteralPath '.\' -Include @('*.ts', '*.tsx') -File -Recurse -Name | ||
[Boolean]$ShouldReload = $Env:GITHUB_EVENT_NAME -iin @('schedule', 'workflow_dispatch') | ||
ForEach ($File In $Files) { | ||
$ShouldReload ? (deno cache --reload $File) : (deno cache $File) | ||
} | ||
deno task build | ||
- name: "Lint Code" | ||
if: "${{!cancelled() && steps.analyze.outcome == 'success'}}" | ||
run: |- | ||
deno lint | ||
- name: "Build Repository" | ||
if: "${{!cancelled() && steps.analyze.outcome == 'success' && steps.analyze.outputs.build == 'true'}}" | ||
- name: "Check Dependencies Update" | ||
if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false'}}" | ||
run: |- | ||
deno task build | ||
deno outdated | ||
- name: "Check Deployment For Remote Import" | ||
if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false'}}" | ||
shell: "pwsh" | ||
run: |- | ||
Get-ChildItem -LiteralPath '.\' -File -Recurse -Name | ||
- name: "Check Deployment For JSR" | ||
if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false' && steps.analyze.outputs.jsr-check == 'true'}}" | ||
run: |- | ||
deno task jsr-check | ||
- name: "Test Code" | ||
id: "test" | ||
if: "${{!cancelled() && steps.analyze.outcome == 'success' && steps.analyze.outputs.test == 'true'}}" | ||
|
@@ -111,26 +115,6 @@ jobs: | |
if: "${{!cancelled() && steps.analyze.outcome == 'success' && steps.analyze.outputs.benchmark == 'true'}}" | ||
run: |- | ||
deno bench --allow-all --no-prompt | ||
# - name: "Check Dependencies Update" | ||
# if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')}}" | ||
# shell: "pwsh" | ||
# run: |- | ||
# [String]$Output = deno run --allow-net "--allow-read=$($Env:GITHUB_WORKSPACE)" --no-prompt https://deno.land/x/[email protected]/main.ts --dry-run **/*.ts **/*.tsx deno.jsonc *>&1 | | ||
# Join-String -Separator "`n" | ||
# $LASTEXITCODE = 0 | ||
# Write-Host -Object $Output | ||
# If ($Output -imatch 'able to update') { | ||
# Write-Warning -Message 'Found dependencies that need to update!' | ||
# } | ||
- name: "Check Deployment For Remote Import" | ||
if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false'}}" | ||
shell: "pwsh" | ||
run: |- | ||
Get-ChildItem -LiteralPath '.\' -File -Recurse -Name | ||
- name: "Check Deployment For JSR" | ||
if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false' && steps.analyze.outputs.jsr-check == 'true'}}" | ||
run: |- | ||
deno task jsr-check | ||
- name: "Build Package For NPM" | ||
if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false' && steps.analyze.outputs.npm-build == 'true'}}" | ||
run: |- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters