Skip to content

Commit ee2fb71

Browse files
committed
ci: run tests on macOS
1 parent f50248a commit ee2fb71

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,36 @@ jobs:
7171
if: matrix.php-versions == '8.4'
7272
with:
7373
version: latest
74+
mac-tests:
75+
runs-on: macos-latest
76+
env:
77+
GOEXPERIMENT: cgocheck2
78+
steps:
79+
- uses: actions/checkout@v4
80+
- uses: actions/setup-go@v5
81+
with:
82+
go-version: "1.24"
83+
cache-dependency-path: |
84+
go.sum
85+
caddy/go.sum
86+
- uses: shivammathur/setup-php@v2
87+
with:
88+
php-version: 8.4
89+
ini-file: development
90+
coverage: none
91+
tools: none
92+
env:
93+
phpts: ts
94+
debug: true
95+
- name: Set Set CGO flags
96+
run: echo "CGO_CFLAGS=$(php-config --includes)" >> "${GITHUB_ENV}"
97+
- name: Build
98+
run: go build -tags nowatcher
99+
- name: Build testcli binary
100+
working-directory: internal/testcli/
101+
run: go build -tags nowatcher
102+
- name: Run library tests
103+
run: go test -tags nowatcher -race -v ./...
104+
- name: Run Caddy module tests
105+
working-directory: caddy/
106+
run: go test -tags nowatcher,nobadger,nomysql,nopgx -race -v ./...

0 commit comments

Comments
 (0)