Fix parse errors, add anonymous classes, improve class validation #15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| go-version: ['1.24', '1.25', '1.26'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Build | |
| run: go build ./... | |
| - name: Test | |
| run: go test -v -count=1 ./... | |
| - name: Build SAPIs | |
| run: | | |
| go build ./sapi/php-cli | |
| go build ./sapi/php-cgi | |
| go build ./sapi/php-fpm | |
| go build ./sapi/php-httpd | |
| - name: Vet | |
| run: go vet ./... | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.26' | |
| - name: Test with coverage | |
| run: go test -v -count=1 -covermode=count -coverpkg=./... -coverprofile=coverage.out ./... | |
| - name: Upload coverage to Coveralls | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| file: coverage.out | |
| format: golang |