Skip to content

Commit 98744fb

Browse files
committed
Add a CI job for pattern.sh
1 parent c0c2c1e commit 98744fb

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Run Bash Script on Multiple Distributions
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
run-script:
11+
name: Run Bash Script
12+
strategy:
13+
matrix:
14+
# Fedora is not an option yet
15+
os: [ubuntu-latest, ubuntu-22.04]
16+
runs-on: ${{ matrix.os }}
17+
18+
steps:
19+
- name: Checkout Repository
20+
uses: actions/checkout@v4
21+
22+
- name: Install Podman on Ubuntu
23+
if: contains(matrix.os, 'ubuntu')
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install -y podman
27+
28+
# Currently we do not do MacOSX as it is not free, maybe in the future
29+
# - name: Install Podman on macOS
30+
# if: contains(matrix.os, 'macos')
31+
# run: |
32+
# brew install podman
33+
# podman machine init
34+
# podman machine start
35+
36+
- name: Verify Podman Installation
37+
run: podman --version
38+
39+
- name: Run pattern.sh script
40+
run: |
41+
./scripts/pattern-util.sh make validate-origin

0 commit comments

Comments
 (0)