-
Notifications
You must be signed in to change notification settings - Fork 14
64 lines (58 loc) · 2.1 KB
/
test_docker_linux_installer.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
name: Test Linux installer
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "flex-linux-setup/**"
pull_request:
branches:
- main
paths:
- "flex-linux-setup/**"
jobs:
build:
runs-on: ubuntu-20.04
strategy:
max-parallel: 6
matrix:
# add '"pgsql" when supported
persistence-backends: ["MYSQL", "PGSQL"]
python-version: ["3.7"]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Test Flex monolith demo
run: |
ip=$(ifconfig eth0 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')
sudo chmod u+x automation/startflexmonolithdemo.sh
sudo bash ./automation/startflexmonolithdemo.sh demoexample.gluu.org ${{ matrix.persistence-backends }} $ip ${{ github.sha }} ${{ secrets.LICENSE_SSA }}
echo "echo setup.properties"
docker exec docker-flex-monolith-flex-1 cat setup.properties
echo "echo setup.properties.last"
docker exec docker-flex-monolith-flex-1 cat /opt/jans/jans-setup/setup.properties.last
export JANS_URL=https://demoexample.gluu.org
export JANS_CLIENT_ID=9876baac-de39-4c23-8a78-674b59df8c09
export JANS_CLIENT_SECRET=1t5Fin3#security
export JANS_INSECURE_CLIENT=true
export TF_ACC=1
git clone https://github.com/JanssenProject/jans.git
cd jans/terraform-provider-jans
go install github.com/jstemmer/go-junit-report/v2@latest
go test -v 2>&1 ./... | go-junit-report > ${{ matrix.persistence-backends }}report.xml
ls
pwd
- uses: actions/upload-artifact@v2 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: go-test-results
path: ./jans/terraform-provider-jans/${{ matrix.persistence-backends }}report.xml