forked from imperva/terraform-provider-incapsula
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.02 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
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.IMPERVA_API_KEY }}'
INCAPSULA_API_ID: '${{ secrets.IMPERVA_API_ID }}'
TESTING_PROFILE: true
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ^1.18
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- 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 with api id + ${{ env.INCAPSULA_API_ID }}
run: make testacc