feat: add query relation #200
Workflow file for this run
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: Test In Example | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-in-example: | |
| strategy: | |
| matrix: | |
| go: [ "1.25", "1.26" ] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout framework | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} | |
| ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
| path: framework | |
| - name: Checkout goravel/example | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: goravel/example | |
| ref: master | |
| path: example | |
| - name: Set up Go ${{ matrix.go }} | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - name: Go mod cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.cache/go-build | |
| ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('example/**/go.sum', 'framework/**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go-${{ matrix.go }}- | |
| - name: Replace framework with local checkout | |
| working-directory: example | |
| run: | | |
| go mod edit -replace github.com/goravel/framework=../framework | |
| go mod tidy | |
| - name: Run tests | |
| working-directory: example | |
| run: go test -timeout 10m -p 1 ./... |