-
Notifications
You must be signed in to change notification settings - Fork 73
56 lines (50 loc) · 1.67 KB
/
acceptance-tests.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
45
46
47
48
49
50
51
52
53
54
55
56
name: Acceptance Tests
concurrency:
group: acceptance-tests
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- master
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
- 'LICENSE'
- 'GNUmakefile'
- 'website/**'
- 'docs/**'
- '.changelog/**'
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
INCAPSULA_API_KEY: ${{ secrets.INCAPSULA_API_KEY }}
INCAPSULA_API_ID: ${{ secrets.INCAPSULA_API_ID }}
SIEM_CONNECTION_S3_PATH: ${{ secrets.SIEM_CONNECTION_S3_PATH }}
SIEM_CONNECTION_S3_SECRET_KEY: ${{ secrets.SIEM_CONNECTION_S3_SECRET_KEY }}
SIEM_CONNECTION_S3_ACCESS_KEY: ${{ secrets.SIEM_CONNECTION_S3_ACCESS_KEY }}
SIEM_CONNECTION_SPLUNK_DISABLED_CERT_VALIDATION: ${{ secrets.SIEM_CONNECTION_SPLUNK_DISABLED_CERT_VALIDATION }}
SIEM_CONNECTION_SPLUNK_HOST: ${{ secrets.SIEM_CONNECTION_SPLUNK_HOST }}
SIEM_CONNECTION_SPLUNK_PORT: ${{ secrets.SIEM_CONNECTION_SPLUNK_PORT }}
SIEM_CONNECTION_SPLUNK_TOKEN: ${{ secrets.SIEM_CONNECTION_SPLUNK_TOKEN }}
CUSTOM_PRIVATE_KEY: ${{ secrets.CUSTOM_PRIVATE_KEY }}
CUSTOM_CERTIFICATE: ${{ secrets.CUSTOM_CERTIFICATE }}
TESTING_PROFILE: true
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
id: go
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go${{ env.GO_VERSION }}-${{ hashFiles('**/go.sum') }}
#- name: Run unit tests
# run: go test ./incapsula
- name: Run acceptance tests
run: make testacc