Skip to content

fix: allow for custom URL and inital testing #7

fix: allow for custom URL and inital testing

fix: allow for custom URL and inital testing #7

Workflow file for this run

name: Acceptance Tests
on:
push:
branches: [main]
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
- '.github/workflows/acceptance-test.yml'
pull_request:
branches: [main]
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
- '.github/workflows/acceptance-test.yml'
workflow_dispatch:
inputs:
enable_keto_tests:
description: 'Enable Keto/relationship tests'
required: false
default: true
type: boolean
enable_b2b_tests:
description: 'Enable B2B/organization tests'
required: false
default: true
type: boolean
enable_social_provider_tests:
description: 'Enable social provider tests'
required: false
default: true
type: boolean
permissions:
contents: read
jobs:
acceptance-test:
name: Build & Acceptance Test
runs-on: ubuntu-slim
timeout-minutes: 30
env:
ORY_WORKSPACE_API_KEY: ${{ secrets.ORY_WORKSPACE_API_KEY }}
ORY_WORKSPACE_ID: ${{ secrets.ORY_WORKSPACE_ID }}
ORY_CONSOLE_API_URL: ${{ secrets.ORY_CONSOLE_API_URL }}
ORY_PROJECT_API_URL: ${{ secrets.ORY_PROJECT_API_URL }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install jq
run: sudo apt-get update && sudo apt-get install -y jq
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- name: Build provider
run: go build -o terraform-provider-ory
- name: Run Acceptance Tests
env:
ORY_KETO_TESTS_ENABLED: ${{ github.event.inputs.enable_keto_tests || 'true' }}
ORY_B2B_ENABLED: ${{ github.event.inputs.enable_b2b_tests || 'true' }}
ORY_SOCIAL_PROVIDER_TESTS_ENABLED: ${{ github.event.inputs.enable_social_provider_tests || 'true' }}
run: ./scripts/run-acceptance-tests.sh -v -timeout 20m ./...