Skip to content

Merge pull request #1 from dickymoore/tests #16

Merge pull request #1 from dickymoore/tests

Merge pull request #1 from dickymoore/tests #16

Workflow file for this run

name: Test repocopy
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
bash-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt update && sudo apt install -y jq xclip bats
- name: Run Bash tests
run: bats tests/bash/rpcp.bats
pester-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install PowerShell & Pester
uses: actions/setup-python@v4 # just to get pwsh; GitHub image already has pwsh
- name: Install Pester
shell: pwsh
run: |
Install-Module Pester -Force -Scope CurrentUser
- name: Run PowerShell tests
shell: pwsh
run: |
Invoke-Pester -Path tests/powershell -CI -Output Detailed