-
-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (39 loc) · 967 Bytes
/
script-tests.yml
File metadata and controls
47 lines (39 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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