-
Notifications
You must be signed in to change notification settings - Fork 129
34 lines (32 loc) · 910 Bytes
/
verify-go-src.yml
File metadata and controls
34 lines (32 loc) · 910 Bytes
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
name: Verify Go client
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
verify-go:
name: Verify go client source code is up to date
strategy:
matrix:
os: [ubuntu-latest]
go_version: [1.20.x]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go ${{ matrix.go_version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go_version }}
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: make all
- name: Check for changes
run: |
if [ -z "$(git status --porcelain)" ]; then
echo "No changes to the go client source files detected"
else
echo "Changes to the go client source files detected, please run 'make all' and push your changes"
exit 1
fi