forked from kubernetes-sigs/cli-utils
-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (39 loc) · 810 Bytes
/
test.yml
File metadata and controls
42 lines (39 loc) · 810 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
35
36
37
38
39
40
41
42
# Copyright 2023 The Flux Authors.
# SPDX-License-Identifier: Apache-2.0
name: test
on:
workflow_dispatch:
push:
branches:
- '*'
pull_request:
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.25.x
cache-dependency-path: |
**/go.sum
**/go.mod
-
name: Test
run: |
make tidy
make test
-
name: Check if working tree is dirty
run: |
if [[ $(git diff --stat) != '' ]]; then
git diff
echo 'run make test and commit changes'
exit 1
fi