-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (59 loc) · 2.04 KB
/
integrate.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
67
68
on: [push, pull_request]
name: Sentinel Community Integration
jobs:
test:
strategy:
matrix:
go-version: [1.14.x]
runs-on: ubuntu-18.04
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Build the docker-compose test stack
run: |
cd apis/sentinel
docker-compose up -d
- name: Check running containers
run: docker ps
# - name: Run integration test suite
# run: |
# cd apis/sentinel/integration-tests
# go run integration.go
# env:
# BITHIPPIE_CLIENT_ID: ${{ secrets.BITHIPPIE_CLIENT_ID }}
# BITHIPPIE_CLIENT_SECRET: ${{ secrets.BITHIPPIE_CLIENT_SECRET }}
- name: Install seabolt Dependencies
run: |
sudo apt-get install -y libssl1.1
wget https://github.com/neo4j-drivers/seabolt/releases/download/v1.7.4/seabolt-1.7.4-Linux-ubuntu-$(lsb_release -rs).deb
sudo dpkg -i seabolt-1.7.4-Linux-ubuntu-$(lsb_release -rs).deb
sudo git clone -b 1.7 https://github.com/neo4j-drivers/seabolt.git /seabolt
- name: Run tests
run: |
cd apis/sentinel
sudo go test ./... -v -coverprofile=coverage.out
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./apis/sentinel/coverage.out
flags: unittests
env_vars: OS,GO
name: codecov-umbrella
fail_ci_if_error: true
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
- name: Begin Terraform
run: |
cd infrastructure/dev
terraform init
terraform plan
terraform validate
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}