Skip to content

Commit 83ebf5c

Browse files
committed
Adding CI
1 parent cde7362 commit 83ebf5c

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright 2025 Hewlett Packard Enterprise Development LP
2+
3+
name: Test Installation Scripts
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
paths:
11+
- 'scripts/install-hpe-provider-*.sh'
12+
- 'scripts/install-hpe-provider-*.ps1'
13+
- 'scripts/test/**'
14+
- '.github/workflows/test-install-scripts.yaml'
15+
16+
jobs:
17+
test-macos:
18+
name: Test macOS Installation Script
19+
runs-on: macos-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Install BATS
24+
run: brew install bats-core
25+
26+
- name: Run BATS tests
27+
run: bats scripts/test/install-hpe-provider-macos.bats
28+
29+
test-linux:
30+
name: Test Linux Installation Script
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
- name: Install BATS
36+
run: |
37+
sudo apt-get update
38+
sudo apt-get install -y bats
39+
40+
- name: Run BATS tests
41+
run: bats scripts/test/install-hpe-provider-linux.bats
42+
43+
test-windows:
44+
name: Test Windows Installation Script
45+
runs-on: windows-latest
46+
steps:
47+
- uses: actions/checkout@v4
48+
49+
- name: Run Pester tests
50+
shell: pwsh
51+
run: |
52+
Install-Module -Name Pester -Force -SkipPublisherCheck -Scope CurrentUser
53+
Import-Module Pester
54+
Invoke-Pester -Path scripts/test/install-hpe-provider-windows.Tests.ps1 -Output Detailed

0 commit comments

Comments
 (0)