Skip to content

feat: add pre-commit-hooks+config to use with pre-commit.com #1

feat: add pre-commit-hooks+config to use with pre-commit.com

feat: add pre-commit-hooks+config to use with pre-commit.com #1

Workflow file for this run

---
name: precommit
on:
push:
pull_request:
workflow_dispatch:
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install module from PSGallery
shell: pwsh
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module PSScriptAnalyzer -ErrorAction Stop
- uses: pre-commit/[email protected]
with:
extra_args: --all-files --show-diff-on-failure