-
Notifications
You must be signed in to change notification settings - Fork 14
44 lines (39 loc) · 1.16 KB
/
main.yml
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
43
44
name: CI
on:
pull_request:
push:
branches:
- '**'
paths-ignore:
- '**.md'
- 'version/*'
tags-ignore:
- 'v**' # Don't run CI tests on release tags
workflow_run:
workflows: ["check_and_regenerate_v3"]
types:
- completed
jobs:
CI:
runs-on: ubuntu-latest
env:
GOLANGCI_LINT_CONFIG: ".golangci.yml"
steps:
- uses: actions/checkout@v4
- run: make go.mk
- uses: ./go.mk/.github/actions/setup
- uses: ./go.mk/.github/actions/pre-check
- run: make test-verbose
- name: Check for changes
id: check_changes
run: |
cd v3/generator/
go generate
go mod tidy
cd ..
# The git adds are used to fix EOL problem:
# warning: in the working copy of 'v3/generator/vendor/github.com/vmware-labs/yaml-jsonpath/NOTICE', CRLF will be replaced by LF the next time Git touches it
# https://github.com/vmware-labs/yaml-jsonpath/pull/59
git add generator/vendor/github.com/vmware-labs/yaml-jsonpath/LICENSE
git add generator/vendor/github.com/vmware-labs/yaml-jsonpath/NOTICE
git diff --exit-code