Skip to content

Fail closed when gh is absent during attestation #54

Fail closed when gh is absent during attestation

Fail closed when gh is absent during attestation #54

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: updater
- name: Checkout web4 (sibling protocol repo)
uses: actions/checkout@v7
with:
repository: pilot-protocol/pilotprotocol
path: web4
- uses: actions/setup-go@v6
with:
go-version: '1.25'
cache: true
cache-dependency-path: updater/go.sum
- name: Run tests with coverage
working-directory: updater
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
files: ./updater/coverage.out
flags: unittests
name: updater
fail_ci_if_error: false
- name: Coverage summary
working-directory: updater
run: go tool cover -func=coverage.out | tail -20
- uses: actions/upload-artifact@v7
with:
name: coverage-updater
path: updater/coverage.out
retention-days: 30