Merge pull request #1 from dickymoore/tests #16
This file contains hidden or 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: 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 | |