forked from apple/container-builder-shim
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.32 KB
/
Copy pathcommon.yml
File metadata and controls
42 lines (39 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Container Builder Shim - common jobs
permissions:
contents: read
on:
workflow_call:
jobs:
build:
runs-on: [self-hosted, macos, tahoe, ARM64]
timeout-minutes: 30
steps:
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version: '1.25.5'
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 0
- name: Check formatting
run: |
./scripts/install-hawkeye.sh
make fmt
git diff
if ! git diff --quiet ; then echo the following files require formatting or license headers: ; git diff --name-only ; false ; fi
- name: Check dependencies
run: |
go mod tidy
go mod vendor
git add --all --intent-to-add .
if ! git diff --quiet ; then echo Please run `go mod tidy && go mod vendor`. Out of date dependency files: ; git diff --name-only ; false ; fi
- name: Check protobufs
run: |
make go-protos
if ! git diff --quiet ; then echo the following files require formatting or license headers: ; git diff --name-only ; false ; fi
- name: Build
run: |
make build
- name: Test
run: |
make test