Skip to content

test: Convert workflow test scripts to use PowerShell and Pester (#122) #397

test: Convert workflow test scripts to use PowerShell and Pester (#122)

test: Convert workflow test scripts to use PowerShell and Pester (#122) #397

Workflow file for this run

# This isn't a reusable workflow but a CI action for this repo itself - testing the contained workflows & scripts.
name: Script Tests
permissions:
contents: read
on:
push:
jobs:
updater:
name: Updater @ ${{ matrix.host }}
runs-on: ${{ matrix.host }}-latest
strategy:
fail-fast: false
matrix:
host:
- ubuntu
- macos
- windows
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- run: Invoke-Pester
working-directory: updater
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
danger:
name: Danger JS Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: danger
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- run: node --test
- name: Check syntax
run: node -c dangerfile.js