feat: using basic as default acr #372
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |