-
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (47 loc) · 1.7 KB
/
Build Module.yml
File metadata and controls
57 lines (47 loc) · 1.7 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
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#using-a-specific-shell
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-powershell
# https://github.com/actions/upload-artifact#where-does-the-upload-go
name: 👷 👷 Build TheCleaners Module
on:
pull_request:
branches:
- main
- prerelease
paths-ignore:
- '**.md'
- 'docs/**'
- 'src/Drafts/**'
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: 🧪 Run Tests
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- name: ✅ Checkout Repository
uses: actions/checkout@v6
- name: 🥾 Bootstrap
shell: pwsh
run: ./actions_bootstrap.ps1
- name: 👷♂️ Test and Build
shell: pwsh
run: Invoke-Build -File .\src\TheCleaners.build.ps1
- name: 🧪 Upload Pester Results
uses: actions/upload-artifact@v7
with:
name: pester-results
path: .\src\Artifacts\testOutput
if-no-files-found: warn
- name: 📦 Upload Build
uses: actions/upload-artifact@v7
with:
name: zip-archive
path: .\src\Archive
if-no-files-found: warn