Repository navigation
chore: Update non-major dependencies #598
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: | |
| unit: | |
| strategy: | |
| matrix: | |
| go: [ "1.26", "1.27" ] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout framework | |
| uses: actions/checkout@v7 | |
| 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@v7 | |
| with: | |
| repository: goravel/example | |
| ref: master | |
| path: example | |
| - name: Set up Go ${{ matrix.go }} | |
| uses: actions/setup-go@v7 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - name: Go mod cache | |
| uses: actions/cache@v6 | |
| 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 -run "^TestMainTestSuite$" . ./app/... | |
| integration: | |
| strategy: | |
| matrix: | |
| go: [ "1.26", "1.27" ] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout framework | |
| uses: actions/checkout@v7 | |
| 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@v7 | |
| with: | |
| repository: goravel/example | |
| ref: master | |
| path: example | |
| - name: Set up Go ${{ matrix.go }} | |
| uses: actions/setup-go@v7 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - name: Go mod cache | |
| uses: actions/cache@v6 | |
| 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 ./tests/... |