-
Notifications
You must be signed in to change notification settings - Fork 11
83 lines (72 loc) · 2.6 KB
/
Copy pathpwsh-invocations-lint.yml
File metadata and controls
83 lines (72 loc) · 2.6 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: PowerShell Invocations Lint
on:
push:
branches:
- main
paths:
- ".githooks/**"
- ".github/workflows/**.yml"
- ".github/workflows/**.yaml"
- ".github/actions/**"
- "**/*.sh"
- "scripts/**.ps1"
- "scripts/tests/test-portable-cleanup-classifier.js"
- "package.json"
pull_request:
paths:
- ".githooks/**"
- ".github/workflows/**.yml"
- ".github/workflows/**.yaml"
- ".github/actions/**"
- "**/*.sh"
- "scripts/**.ps1"
- "scripts/tests/test-portable-cleanup-classifier.js"
- "package.json"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
pwsh-invocations-lint:
name: PowerShell Invocations Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
path: unity-helpers
persist-credentials: false
- name: Checkout immutable central cleanup policy
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
repository: Ambiguous-Interactive/ambiguous-organization-build-lock
ref: 673eb65e7d863a1a8a8a70882bd980e189d41754
path: build-lock-policy
persist-credentials: false
- name: Test PowerShell invocations linter
working-directory: unity-helpers
shell: pwsh
run: ./scripts/tests/test-lint-pwsh-invocations.ps1 -VerboseOutput
- name: Lint PowerShell invocations
working-directory: unity-helpers
shell: pwsh
run: ./scripts/lint-pwsh-invocations.ps1 -VerboseOutput
- name: Test workflow run-expression-length linter
working-directory: unity-helpers
shell: pwsh
run: ./scripts/tests/test-lint-workflow-run-expression-length.ps1 -VerboseOutput
- name: Lint workflow run-expression length
working-directory: unity-helpers
shell: pwsh
run: ./scripts/lint-workflow-run-expression-length.ps1 -VerboseOutput
- name: Test Unity workflow matrix contract
working-directory: unity-helpers
shell: pwsh
run: ./scripts/tests/test-unity-workflow-matrix-contract.ps1 -VerboseOutput
- name: Test central Unity cleanup policy parity
working-directory: unity-helpers
env:
BUILD_LOCK_POLICY_ROOT: ${{ github.workspace }}/build-lock-policy
run: node scripts/tests/test-portable-cleanup-classifier.js