mirror of
https://github.com/janikvonrotz/awesome-powershell.git
synced 2025-01-11 07:19:24 -05:00
Merge pull request #99 from hjorslev/master
GH to monitor markdown links
This commit is contained in:
commit
47da1132d8
@ -1,12 +1,10 @@
|
||||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: CI
|
||||
name: Quality Assurance
|
||||
|
||||
# Controls when the action will run. Triggers the workflow on push or pull request
|
||||
# events but only for the master branch
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
schedule:
|
@ -1,7 +1,7 @@
|
||||
function Test-MarkdownLinks([String]$Path) {
|
||||
$unreachable = @()
|
||||
# Get markdown files recursively
|
||||
$files = Get-ChildItem -Path $path -Recurse -Include "*.md"
|
||||
$files = Get-ChildItem -Path $Path -Recurse -Include "*.md"
|
||||
|
||||
$files | ForEach-Object {
|
||||
$fileName = $_.Name
|
||||
@ -26,7 +26,11 @@
|
||||
return $unreachable
|
||||
}
|
||||
|
||||
$deadlinks = Test-MarkdownLinks -Path ".\readme.md"
|
||||
if ($deadlinks) {
|
||||
Write-Error -Message 'Dead links found' -Category ObjectNotFound
|
||||
$DeadLinks = Test-MarkdownLinks -Path ".\readme.md"
|
||||
if ($DeadLinks) {
|
||||
Write-Host -Object '--- DEAD LINKS FOUND ---' -ForegroundColor Red
|
||||
foreach ($DeadLink in $DeadLinks) {
|
||||
Write-Host -Object $DeadLink -ForegroundColor Red
|
||||
}
|
||||
exit 1
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
# Awesome PowerShell [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)
|
||||
# Awesome PowerShell [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) ![Quality Assurance](https://github.com/janikvonrotz/awesome-powershell/workflows/Quality%20Assurance/badge.svg)
|
||||
|
||||
[<img src="https://github.com/PowerShell/PowerShell/raw/master/assets/Powershell_256.png" align="right" width="80">](https://msdn.microsoft.com/en-us/powershell/)
|
||||
|
||||
@ -66,7 +66,7 @@ It includes a command-line shell and an associated scripting language.
|
||||
* [Learn PowerShell in a Month of Lunches, Linux and macOS Edition](https://www.manning.com/books/learn-powershell-in-a-month-of-lunches-linux-and-macos-edition) - A task-focused tutorial for administering Linux and macOS systems using Microsoft PowerShell.
|
||||
* [Learn PowerShell Scripting in a Month of Lunches](https://www.manning.com/books/learn-powershell-scripting-in-a-month-of-lunches) - A guide to the process of developing, testing, and deploying scripts, and the art of toolmaking.
|
||||
* [The Monad Manifesto, Annotated - Jeffrey Snover](https://leanpub.com/s/4W-ob-YDw2LE2aSMyosCtA.pdf) - Design and theory behind the language from its creator.
|
||||
* [Windows PowerShell Networking Guide](https://leanpub.com/s/QRQJjPFKqmeA7Hw5Cgk-KA.pdf) - Language specific guide to Windows networking.
|
||||
* [Windows PowerShell Networking Guide](https://leanpub.com/windowspowershellnetworkingguide/read) - Language specific guide to Windows networking.
|
||||
* [Why PowerShell? - Warren Frame & Don Jones](https://leanpub.com/s/aQDRwmoOi940mX_EB6N7Yg.pdf) - Use cases for the language.
|
||||
* [The Big Book of PowerShell Gotchas - Don Jones](https://leanpub.com/s/lDl9ZV0QW7zaE4BpitXVig.pdf) - Excellent guide to avoiding common pitfalls.
|
||||
* [The Big Book of PowerShell Error Handling - Dave Wyatt](https://leanpub.com/s/znHIFrvBAYRST5nFBiQU5g.pdf) - Great reference for error handling techniques.
|
||||
@ -104,7 +104,6 @@ It includes a command-line shell and an associated scripting language.
|
||||
|
||||
## Communities
|
||||
|
||||
* [PowerShell.com](http://powershell.com/) - Forums, blog posts, and more.
|
||||
* [PowerShell.org](http://powershell.org/) - Forums, summits, community blog posts, and more.
|
||||
* [/r/PowerShell](http://www.reddit.com/r/powershell) - Reddit PowerShell community.
|
||||
* [Slack PowerShell team](http://slack.poshcode.org/) - Large chat room dedicated to PowerShell. Bridged with `#PowerShell` on irc.freenode.net.
|
||||
@ -121,7 +120,7 @@ It includes a command-line shell and an associated scripting language.
|
||||
* [PowerShell Studio](https://www.sapien.com/software/powershell_studio) - Powerful PowerShell IDE with module, help, and user interface development tools, high DPI support and regular updates.
|
||||
* [PowerShell for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell) - Provides IntelliSense, code navigations, script analysis, script debugging, and more for the [Visual Studio Code](https://code.visualstudio.com) editor.
|
||||
* [PoshTools for Visual Studio](https://github.com/adamdriscoll/PoshTools) - Provides IntelliSense, script debugging, and Pester testing support for PowerShell to Visual Studio.
|
||||
* [PowerShell ISE](https://msdn.microsoft.com/en-us/powershell/scripting/core-powershell/ise/using-the-windows-powershell-ise) - Official PowerShell development environment included with Microsoft Windows.
|
||||
* [PowerShell ISE](https://docs.microsoft.com/en-us/powershell/scripting/components/ise/introducing-the-windows-powershell-ise) - Official PowerShell development environment included with Microsoft Windows.
|
||||
* [ISE Steroids](http://www.powertheshell.com/isesteroids/) - Add-on for the PowerShell ISE which provides a rich set of additional features to complete the ISE development experience.
|
||||
* [PowerShell Plus](https://www.idera.com/productssolutions/freetools/powershellplus) - All in one IDE.
|
||||
* [SublimeText package](https://github.com/SublimeText/PowerShell) - PowerShell language support for Sublime Text.
|
||||
|
Loading…
Reference in New Issue
Block a user