Skip to content

Rewrite CLI in Go (v0.2.0) #40

Rewrite CLI in Go (v0.2.0)

Rewrite CLI in Go (v0.2.0) #40

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: go test ./pkg/...
e2e:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run E2E tests
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
env:
SERPAPI_KEY: ${{ secrets.SERPAPI_KEY }}
run: go test ./tests/...
- name: Skip E2E (fork PR)
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository
run: echo "Skipping E2E tests - SERPAPI_KEY unavailable in fork PRs"