-
Notifications
You must be signed in to change notification settings - Fork 92
120 lines (118 loc) · 3.89 KB
/
ci-docs.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# This file is created according to
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
# As a result, the set of jobs in this file should be equal to that in ci.yaml.
#
# Note that if a PR contains changes of both markdown files and non-markdown files,
# there'll be twins for each check (e.g., https://github.com/runfinch/finch/pull/88).
# However, due to GitHub's logic, even though the one from ci-docs.yaml passes,
# the one from ci.yaml still has to pass for the PR to be merged,
# so it functionally works, while it's visually confusing.
name: CI
on:
push:
branches:
- main
paths:
- '**.md'
- 'contrib/**'
- '!contrib/packaging/**'
- '.github/**'
- '!.github/workflows/ci.yaml'
- '!.github/workflows/e2e-*.yaml'
pull_request:
branches:
- main
paths:
- '**.md'
- 'contrib/**'
- '!contrib/packaging/**'
- '.github/**'
- '!.github/workflows/ci.yaml'
- '!.github/workflows/e2e-*.yaml'
jobs:
git-secrets:
runs-on: ubuntu-latest
steps:
- name: Pull latest awslabs/git-secrets repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: awslabs/git-secrets
ref: 1.3.0
fetch-tags: true
path: git-secrets
- name: Install git secrets from source
run: sudo make install
working-directory: git-secrets
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Scan repository for git secrets
run: |
git secrets --register-aws
git secrets --scan-history
gen-code-no-diff:
strategy:
matrix:
os: [macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- run: echo "Skipping CI for docs & contrib files"
unit-tests:
strategy:
matrix:
os: [macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- run: echo "Skipping CI for docs & contrib files"
go-linter:
name: lint
runs-on: ubuntu-latest
steps:
- run: echo "Skipping CI for docs & contrib files"
go-mod-tidy-check:
runs-on: ubuntu-latest
steps:
- run: echo "Skipping CI for docs & contrib files"
check-licenses:
runs-on: ubuntu-latest
steps:
- run: echo "Skipping CI for docs & contrib files"
macos-e2e-tests:
strategy:
matrix:
os:
[
[13, test-e2e-container, X64, test],
[13, test-e2e-container, arm64, test],
[13, test-e2e-vm-serial, X64, test],
[13, test-e2e-vm-serial, arm64, test],
[14, test-e2e-container, X64, test],
[14, test-e2e-container, arm64, test],
[14, test-e2e-vm-serial, X64, test],
[14, test-e2e-vm-serial, arm64, test],
]
uses: ./.github/workflows/e2e-docs.yaml
windows-e2e-tests:
strategy:
matrix:
os:
[[test-e2e-container, amd64, test], [test-e2e-vm-serial, amd64, test]]
uses: ./.github/workflows/e2e-docs.yaml
linux-e2e-tests:
strategy:
matrix:
os:
[
[amazonlinux, X64, 2, test-e2e-container, test],
[amazonlinux, X64, 2023, test-e2e-container, test],
[amazonlinux, arm64, 2, test-e2e-container, test],
[amazonlinux, arm64, 2023, test-e2e-container, test],
]
uses: ./.github/workflows/e2e-docs.yaml
mdlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: avto-dev/markdown-lint@04d43ee9191307b50935a753da3b775ab695eceb # v1.5.0
with:
args: '**/*.md'
# CHANGELOG.md is only updated by release-please bot.
ignore: 'CHANGELOG.md'