Deploy testing instances before running E2E testing
This commit is contained in:
parent
827756822d
commit
657ca221f6
|
@ -69,32 +69,9 @@ jobs:
|
||||||
#
|
#
|
||||||
- name: Coverage report
|
- name: Coverage report
|
||||||
run: |
|
run: |
|
||||||
|
source venv/bin/activate
|
||||||
coverage report
|
coverage report
|
||||||
|
|
||||||
end2end-tests:
|
|
||||||
needs: test
|
|
||||||
runs-on: self-hosted
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- name: Checkout E2E tests repo
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
repository: trustchain-oc1-orchestral/IdHub_E2E_testing
|
|
||||||
ref: master
|
|
||||||
token: ${{ secrets.SSIKIT_TOKEN }}
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
npm ci
|
|
||||||
|
|
||||||
- name: Install Playwright browsers
|
|
||||||
run: |
|
|
||||||
npx playwright install --with-deps
|
|
||||||
|
|
||||||
- name: Run Playwright tests
|
|
||||||
run: |
|
|
||||||
npx playwright test
|
|
||||||
|
|
||||||
ssikit-tests:
|
ssikit-tests:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
@ -131,7 +108,7 @@ jobs:
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
python main.py
|
python main.py
|
||||||
|
|
||||||
deploy:
|
deploy-testing-instances:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
|
@ -148,3 +125,27 @@ jobs:
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
if: success() && github.ref == 'refs/heads/release'
|
if: success() && github.ref == 'refs/heads/release'
|
||||||
|
|
||||||
|
end2end-tests:
|
||||||
|
needs: deploy-testing-instances
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout E2E tests repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: trustchain-oc1-orchestral/IdHub_E2E_testing
|
||||||
|
ref: master
|
||||||
|
token: ${{ secrets.SSIKIT_TOKEN }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
|
||||||
|
- name: Install Playwright browsers
|
||||||
|
run: |
|
||||||
|
npx playwright install --with-deps
|
||||||
|
|
||||||
|
- name: Run Playwright tests
|
||||||
|
run: |
|
||||||
|
npx playwright test
|
||||||
|
|
Loading…
Reference in New Issue