Skip to content

Commit 8bcb75f

Browse files
authored
ci: add an explicit build workflow (#3513)
1 parent f8f8801 commit 8bcb75f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
pull_request:
8+
merge_group:
9+
10+
jobs:
11+
build:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, macos-latest, windows-latest]
16+
17+
steps:
18+
# Checkout should always be before setup-go to ensure caching is working
19+
- name: Checkout
20+
uses: actions/checkout@v6
21+
with:
22+
fetch-depth: 1
23+
24+
- name: Install Go
25+
uses: actions/setup-go@v6
26+
with:
27+
go-version: stable
28+
29+
- name: Verify go.mod is tidy
30+
run: |
31+
go mod tidy
32+
git diff --exit-code
33+
34+
- name: Build the provider
35+
run: go build ./

0 commit comments

Comments
 (0)