Skip to content

RunPesterTests

RunPesterTests #11

Workflow file for this run

name: RunPesterTests
on:
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: write # Update permissions to allow writing
jobs:
build:
permissions:
contents: write # Update permissions to allow writing
name: RunPesterTests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Set up Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Run Pester Tests
run: |
pwsh .github/scripts/RunPesterTests.ps1
- name: Commit and push changes
run: |
git add .
git commit -m "Update files after running Pester tests"
git push origin ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}