-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (36 loc) · 1.22 KB
/
ci_generate.yml
File metadata and controls
43 lines (36 loc) · 1.22 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
43
# This workflow will ensure that the goldenmaster is always up-to-date before being merged
name: Technology Template Goldenmaster Test
on:
pull_request:
branches: [main, maintenance/*]
paths:
- '*/**'
- '!docs/**'
env:
GITHUB_AUTH_TOKEN: ${{ secrets.WOLFGANG_REPO_PACKAGE_READ }}
GOPRIVATE: "github.com/apigear-io/*"
GH_ACCESS_TOKEN: ${{ secrets.APIGEAR_REPOS }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
go_version: "1.21.x"
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-go@v5
with:
go-version: ${{env.go_version}}
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-${{ matrix.go-version }}-
- run: go run main.go install
- run: go run main.go diff
- name: Install clang-format-14
run: sudo apt-get install --no-install-recommends -y clang-format-14 && sudo mv /usr/bin/clang-format-14 /usr/bin/clang-format
- run: go run main.go testStyle