-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (54 loc) · 1.6 KB
/
pr-created.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
name: pull_request_created
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
branches:
- 'main'
paths-ignore:
- '*.md'
- '*.yaml'
- '.github/workflows/*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pr-created:
uses: kubescape/workflows/.github/workflows/incluster-comp-pr-created.yaml@main
with:
GO_VERSION: "1.21"
CGO_ENABLED: 0
secrets: inherit
component-tests:
runs-on: ubuntu-latest
strategy:
matrix:
test: [
"TestSynchronizer_TC01_InCluster",
"TestSynchronizer_TC01_Backend",
"TestSynchronizer_TC02_InCluster",
"TestSynchronizer_TC02_Backend",
"TestSynchronizer_TC04_InCluster",
"TestSynchronizer_TC04_Backend",
"TestSynchronizer_TC05_InCluster",
"TestSynchronizer_TC05_Backend",
"TestSynchronizer_TC06",
"TestSynchronizer_TC07",
"TestSynchronizer_TC08",
"TestSynchronizer_TC09",
"TestSynchronizer_TC10",
"TestSynchronizer_TC11",
"TestSynchronizer_TC12"
]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
env:
CGO_ENABLED: 0
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Run test
run: |
echo "machine github.com login git password ${{ secrets.INGESTERS_READ_TOKEN }}" > ~/.netrc
cd tests && go test -v ./... -run ${{ matrix.test }} --timeout=20m --tags=integration