Skip to content

chore(deps): bump actions/checkout from 6 to 7 (#15) #39

chore(deps): bump actions/checkout from 6 to 7 (#15)

chore(deps): bump actions/checkout from 6 to 7 (#15) #39

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout this repo
uses: actions/checkout@v7
with:
path: webhook
- name: Checkout web4 (sibling protocol repo)
uses: actions/checkout@v7
with:
repository: pilot-protocol/pilotprotocol
path: web4
- name: Checkout common
uses: actions/checkout@v7
with:
repository: pilot-protocol/common
path: common
- uses: actions/setup-go@v6
with:
go-version: '1.25'
cache: true
cache-dependency-path: webhook/go.sum
- name: Tidy (webhook) go.mod (absorb sibling drift)
working-directory: webhook
# -e tolerates transitive *test* imports we don't control —
# e.g. when `handshake`'s tests import packages that were
# moved out of `pilotprotocol` into `common`. webhook's own
# build + tests below are the real gate; tidy is just to
# absorb declared-direct-dep drift.
run: go mod tidy -e
- name: Run tests with coverage
working-directory: webhook
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
files: ./webhook/coverage.out
flags: unittests
name: webhook
fail_ci_if_error: false
- name: Coverage summary
working-directory: webhook
run: go tool cover -func=coverage.out | tail -20
- uses: actions/upload-artifact@v7
with:
name: coverage-webhook
path: webhook/coverage.out
retention-days: 30