Skip to content

Commit 33324cf

Browse files
committed
Add Go integration matrix tests
1 parent b451a0e commit 33324cf

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/test.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,34 @@ jobs:
4949
- name: Test firewall configure script
5050
run: make test-configure
5151

52+
go-integration:
53+
runs-on: ubuntu-latest
54+
strategy:
55+
fail-fast: false
56+
matrix:
57+
go-version: ["1.17", "1.18", "1.19", "1.20", "1.21", "1.22", "1.23", "1.24", "1.25"]
58+
steps:
59+
- uses: actions/checkout@v4
60+
- name: Set up Python 3.10
61+
uses: actions/setup-python@v5
62+
with:
63+
python-version: "3.10"
64+
- name: Install dependencies
65+
run: |
66+
python -m pip install --upgrade pip
67+
pip install -r requirements.txt
68+
pip install -r requirements-dev.txt
69+
- name: Install Supply-Chain Firewall
70+
run: pip install .
71+
- name: Install Go toolchain
72+
uses: actions/setup-go@v6
73+
with:
74+
go-version: ${{ matrix.go-version }}
75+
- name: Test firewall Go integration
76+
run: |
77+
make test-go
78+
make test-go-class
79+
5280
python-executable:
5381
runs-on: ubuntu-latest
5482
steps:

0 commit comments

Comments
 (0)