-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (60 loc) · 1.75 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
57
58
59
60
61
62
63
64
65
66
name: Acceptance tests
on:
workflow_dispatch:
push:
branches:
- 'staging'
- 'main'
pull_request:
branches:
- 'staging'
- 'main'
types:
- assigned
- opened
- synchronize
- reopened
- edited
- ready_for_review
schedule:
- cron: '0 12 * * *' # This will run the workflow every day at 00:00 UTC
concurrency:
group: testing-concurrency-group
cancel-in-progress: false
jobs:
enterprise:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
- name: Build and run dev container task
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/aimoda/terraform-provider-corellium-devcontainer
cacheFrom: ghcr.io/aimoda/terraform-provider-corellium-devcontainer
push: never
runCmd: |
export CORELLIUM_API_TOKEN=${{ secrets.CORELLIUM_API_TOKEN }}
export CORELLIUM_API_HOST=${{ vars.CORELLIUM_API_HOST }}
go get
go mod tidy
make install
make testacc
non-enterprise:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
- name: Build and run dev container task
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/aimoda/terraform-provider-corellium-devcontainer
cacheFrom: ghcr.io/aimoda/terraform-provider-corellium-devcontainer
push: never
runCmd: |
export CORELLIUM_API_TOKEN=${{ secrets.CORELLIUM_API_TOKEN_PERSONAL }}
export CORELLIUM_API_HOST=${{ vars.CORELLIUM_API_HOST }}
go get
go mod tidy
make install
NON_ENTERPRISE=1 make testacc