-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (44 loc) · 1.36 KB
/
test-install-scripts.yaml
File metadata and controls
54 lines (44 loc) · 1.36 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
# Copyright 2025 Hewlett Packard Enterprise Development LP
name: Test Installation Scripts
on:
push:
branches:
- main
pull_request:
paths:
- 'scripts/install-hpe-provider-*.sh'
- 'scripts/install-hpe-provider-*.ps1'
- 'scripts/test/**'
- '.github/workflows/test-install-scripts.yaml'
jobs:
test-macos:
name: Test macOS Installation Script
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install BATS
run: brew install bats-core
- name: Run BATS tests
run: bats scripts/test/install-hpe-provider-macos.bats
test-linux:
name: Test Linux Installation Script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install BATS
run: |
sudo apt-get update
sudo apt-get install -y bats
- name: Run BATS tests
run: bats scripts/test/install-hpe-provider-linux.bats
test-windows:
name: Test Windows Installation Script
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Run Pester tests
shell: pwsh
run: |
Install-Module -Name Pester -Force -SkipPublisherCheck -Scope CurrentUser
Import-Module Pester
Invoke-Pester -Path scripts/test/install-hpe-provider-windows.Tests.ps1 -Output Detailed