Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add query relation #200

feat: add query relation

feat: add query relation #200

Workflow file for this run

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 ./...