Skip to content

Commit 371b157

Browse files
committed
ci: run the ci on mac os
run the ci on mac os as well as on linux Signed-off-by: Rewant Soni <resoni@redhat.com>
1 parent d305b32 commit 371b157

3 files changed

Lines changed: 31 additions & 8 deletions

File tree

.github/workflows/build.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,22 @@ permissions:
1616
jobs:
1717
build:
1818
name: build
19-
runs-on: ubuntu-latest
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
matrix:
22+
os: [ubuntu-latest, macos-latest]
2023
steps:
2124
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2225
with:
2326
fetch-depth: 1
2427
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
2528
with:
2629
go-version-file: go.mod
30+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
31+
with:
32+
python-version: '3.x'
33+
- name: Install Python dependencies
34+
run: pip install pyyaml
2735
- name: run make build
2836
run: make build
2937
- name: make build installer

.github/workflows/lint.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ jobs:
3939
4040
golangci:
4141
name: golangci-lint
42-
runs-on: ubuntu-latest
42+
runs-on: ${{ matrix.os }}
43+
strategy:
44+
matrix:
45+
os: [ubuntu-latest, macos-latest]
4346
steps:
4447
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4548
with:
@@ -93,7 +96,10 @@ jobs:
9396
9497
modcheck:
9598
name: modcheck
96-
runs-on: ubuntu-latest
99+
runs-on: ${{ matrix.os }}
100+
strategy:
101+
matrix:
102+
os: [ubuntu-latest, macos-latest]
97103
steps:
98104
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
99105
with:
@@ -106,9 +112,15 @@ jobs:
106112

107113
vendorcheck:
108114
name: vendorcheck
109-
runs-on: ubuntu-latest
115+
runs-on: ${{ matrix.os }}
116+
strategy:
117+
matrix:
118+
os: [ubuntu-latest, macos-latest]
110119
steps:
111120
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
121+
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
122+
with:
123+
go-version-file: go.mod
112124
- name: Check the vendor folder consistency
113125
run: |
114126
go mod vendor -o vendor.gen

.github/workflows/unit-test.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,18 @@ permissions:
1818
jobs:
1919
unittests:
2020
name: unittests
21-
runs-on: ubuntu-latest
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
matrix:
24+
os: [ubuntu-latest, macos-latest]
2225
steps:
23-
- name: checkout
26+
- name: checkout
2427
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2528
with:
2629
fetch-depth: 1
27-
- name: setup go
30+
- name: setup go
2831
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
29-
with:
32+
with:
3033
go-version-file: go.mod
3134
check-latest: true
3235
- name: run unit tests

0 commit comments

Comments
 (0)