Skip to content

Commit

Permalink
Add auth controller
Browse files Browse the repository at this point in the history
  • Loading branch information
gagantrivedi committed Jun 11, 2024
1 parent 0d8a26f commit d9551ae
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions .github/workflows/api-tests-with-private-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,39 @@ jobs:
shell: bash
working-directory: api

- name: Checkout SAML package
- name: Checkout Auth Controller package
uses: actions/checkout@v4
with:
repository: flagsmith/flagsmith-saml
repository: flagsmith/flagsmith-auth-controller
token: ${{ secrets.GH_PRIVATE_ACCESS_TOKEN }}
ref: ${{ env.flagsmith_saml_revision }}
path: ./flagsmith-saml
ref: ${{ env.FLAGSMITH_AUTH_CONTROLLER_REVISION }}
path: ./flagsmith-auth-controller

- name: Integrate SAML module
run: mv $GITHUB_WORKSPACE/flagsmith-saml/saml .
- name: Integrate Auth Controller module
run: mv $GITHUB_WORKSPACE/flagsmith-auth-controller/auth_controller .
shell: bash

- name: integrate saml tests
run: ln -s $GITHUB_WORKSPACE/flagsmith-saml/tests tests/saml_tests
- name: integrate auth_controller tests
run: ln -s $GITHUB_WORKSPACE/flagsmith-auth-controller/tests tests/auth_controller_tests
shell: bash
working-directory: api

# - name: Checkout SAML package
# uses: actions/checkout@v4
# with:
# repository: flagsmith/flagsmith-saml
# token: ${{ secrets.GH_PRIVATE_ACCESS_TOKEN }}
# ref: ${{ env.flagsmith_saml_revision }}
# path: ./flagsmith-saml

# - name: Integrate SAML module
# run: mv $GITHUB_WORKSPACE/flagsmith-saml/saml .

# - name: integrate saml tests
# run: ln -s $GITHUB_WORKSPACE/flagsmith-saml/tests tests/saml_tests
# shell: bash
# working-directory: api

- name: Run Tests
env:
DOTENV_OVERRIDE_FILE: .env-ci
Expand Down

0 comments on commit d9551ae

Please sign in to comment.