Files
Ein Anderssono 2e73d01b40
pipeline / build (push) Has been cancelled
pipeline / test (push) Has been cancelled
v0.5.0: manifests, filters, logging, docs
2026-06-15 00:00:06 +02:00

35 lines
958 B
YAML

name: pipeline
on: [push, pull_request]
jobs:
test:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Build stub library
run: |
cc -c -o bridge/photokit_bridge_stub.o bridge/photokit_bridge_stub.c -I bridge
ar rcs bridge/libphotokit_bridge_stub.a bridge/photokit_bridge_stub.o
- name: Vet
run: go vet -tags=test ./...
- name: Test
run: go test -tags=test -race -coverprofile=coverage.out ./cmd/photoscli/ ./internal/photos/
- name: Coverage summary
run: go tool cover -func=coverage.out | tail -1
build:
runs-on: macos-14
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Build
run: make build
- name: Verify version
run: ./bin/photoscli version