Bump Microsoft.Azure.Functions.Worker.Sdk from 1.16.2 to 1.16.4 in /backend/PoudriereC2 #632
Workflow file for this 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
name: Lint source | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install linting tools | |
shell: pwsh | |
run: | | |
Set-PSRepository PSGallery -InstallationPolicy Trusted | |
Install-Module PSScriptAnalyzer -ErrorAction Stop | |
dotnet tool install -g dotnet-fsharplint | |
- name: Restore dependencies (.NET) | |
run: | | |
dotnet restore | |
- name: Lint with PSScriptAnalyzer | |
shell: pwsh | |
run: | | |
Invoke-ScriptAnalyzer -Path . -Recurse -OutVariable issues | |
$errors = $issues.Where({$_.Severity -eq 'Error'}) | |
$warnings = $issues.Where({$_.Severity -eq 'Warning'}) | |
if ($errors) { | |
Write-Error "There were $($errors.Count) errors and $($warnings.Count) warnings total." -ErrorAction Stop | |
} else { | |
Write-Output "There were $($errors.Count) errors and $($warnings.Count) warnings total." | |
} | |
- name: Lint with FSharpLint | |
run: dotnet fsharplint lint ./PoudriereC2.sln | |
- name: Restore dependencies (Node.js) | |
working-directory: ./frontend | |
run: yarn | |
- name: Lint with ESLint | |
working-directory: ./frontend | |
run: yarn lint |