Skip to content
Merged
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
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build

permissions:
contents: read

on:
pull_request:
merge_group:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
# Checkout should always be before setup-go to ensure caching is working
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 1

- name: Install Go
uses: actions/setup-go@v6
with:
go-version: stable

- name: Verify go.mod is tidy
run: |
go mod tidy
git diff --exit-code
- name: Build the provider
run: go build ./
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build command go build ./ is inconsistent with other workflows in this repository. Other workflows (unit-tests.yaml, coverage.yml) use make build, which runs go install according to the GNUmakefile. Consider using make build instead for consistency, or if you specifically want to test that go build works without installing, please add a comment explaining the rationale.

Suggested change
run: go build ./
run: make build

Copilot uses AI. Check for mistakes.
Loading