Skip to content

Commit 6fa12fd

Browse files
Merge pull request #104 from fingerprintjs/ci/INTER-1130-e2e-tests
ci: add e2e tests workflow
2 parents 8af191c + cd49659 commit 6fa12fd

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/e2e-tests.yml

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