Skip to content

Commit ffd32ca

Browse files
ci: add e2e tests workflow
1 parent 8af191c commit ffd32ca

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: E2E Tests
2+
on:
3+
# TODO Remove
4+
pull_request:
5+
workflow_call:
6+
7+
jobs:
8+
read-version:
9+
name: 'Read package version'
10+
runs-on: ubuntu-latest
11+
outputs:
12+
version: ${{ steps.version.outputs.version }}
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Read version from config.json
16+
id: version
17+
run: echo version=$(node -p "require('./package.json').version") >> $GITHUB_OUTPUT
18+
e2e-tests:
19+
name: 'Run E2E tests'
20+
needs: read-version
21+
uses: fingerprintjs/dx-team-toolkit/.github/workflows/run-server-sdk-e2e-tests.yml@v1
22+
with:
23+
sdk: python
24+
sdkVersion: ${{ needs.read-version.outputs.version }}
25+
appId: ${{ vars.RUNNER_APP_ID }}
26+
commitSha: ${{ github.event.pull_request.head.sha || github.sha }}
27+
secrets:
28+
APP_PRIVATE_KEY: ${{ secrets.RUNNER_APP_PRIVATE_KEY }}
29+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,8 @@ jobs:
4848
- name: Publish package distributions to PyPI
4949
uses: pypa/gh-action-pypi-publish@897895f1e160c830e369f9779632ebc134688e1b
5050

51+
e2e-tests:
52+
needs: publish
53+
uses: ./.github/workflows/e2e-tests.yml
54+
5155

0 commit comments

Comments
 (0)