Skip to content

chore: Update opentelemetry-go monorepo to v1 (#1570) #596

chore: Update opentelemetry-go monorepo to v1 (#1570)

chore: Update opentelemetry-go monorepo to v1 (#1570) #596

Workflow file for this run

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