Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/test-and-build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- "go.sum"
- "CHANGELOG.md"
- "broker/**"
- "www/**"
- "internal/web/www/**"
- "testsuite/**"
- ".github/workflows/test-and-build-artifacts.yml"
- ".github/workflows/test.yml"
Expand All @@ -26,7 +26,7 @@ on:
- "go.sum"
- "CHANGELOG.md"
- "broker/**"
- "www/**"
- "internal/web/www/**"
- "testsuite/**"
- ".github/workflows/test-and-build-artifacts.yml"
- ".github/workflows/test.yml"
Expand Down Expand Up @@ -75,6 +75,19 @@ jobs:
- name: Unit Tests
run: go test ./...

- name: External SDK Consumer
working-directory: testsuite/sdk-consumer
run: go test ./...

- name: Vet Public Packages And CLI
run: go vet ./...

- name: Verify Exported API Inventory
run: go run ./tools/api_inventory -check API.md

- name: Broker Protocol Fixtures
run: node broker/test_support/signing_fixture_test.js

build:
name: Build Multiarchitecture Artifacts
needs:
Expand Down Expand Up @@ -214,7 +227,7 @@ jobs:
$env:GOARCH = $target.GOARCH
$env:CGO_ENABLED = "0"

go build -trimpath -ldflags="-s -w -X main.version=$env:APP_VERSION" -o "dist/$artifact" .
go build -trimpath -ldflags="-s -w -X github.com/bucketgit/bgit.version=$env:APP_VERSION" -o "dist/$artifact" ./cmd/bgit

if (!(Test-Path "dist/$artifact")) {
throw "Missing expected artifact: dist/$artifact"
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ jobs:
- name: Unit Tests
run: go test ./...

- name: External SDK Consumer
working-directory: testsuite/sdk-consumer
run: go test ./...

- name: Vet Public Packages And CLI
run: go vet ./...

- name: Verify Exported API Inventory
run: go run ./tools/api_inventory -check API.md

- name: Broker Protocol Fixtures
run: node broker/test_support/signing_fixture_test.js

local-broker-integration:
name: Local Broker Integration (${{ matrix.runtime }} / ${{ matrix.os }})
runs-on: ${{ matrix.os }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ go.work.sum
# .vscode/

bgit
!cmd/
!cmd/bgit/
!cmd/bgit/main.go
*.test
*.out
coverage.txt
Expand Down
Loading