Skip to content

chore: add CHANGELOG and CONTRIBUTING #6

chore: add CHANGELOG and CONTRIBUTING

chore: add CHANGELOG and CONTRIBUTING #6

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