diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml new file mode 100644 index 00000000..49e07d0c --- /dev/null +++ b/.github/workflows/e2e-tests.yml @@ -0,0 +1,27 @@ +name: E2E Tests +on: + workflow_call: + +jobs: + read-version: + name: 'Read package version' + runs-on: ubuntu-latest + outputs: + version: ${{ steps.version.outputs.version }} + steps: + - uses: actions/checkout@v4 + - name: Read version from config.json + id: version + run: echo version=$(node -p "require('./package.json').version") >> $GITHUB_OUTPUT + e2e-tests: + name: 'Run E2E tests' + needs: read-version + uses: fingerprintjs/dx-team-toolkit/.github/workflows/run-server-sdk-e2e-tests.yml@v1 + with: + sdk: python + sdkVersion: ${{ needs.read-version.outputs.version }} + appId: ${{ vars.RUNNER_APP_ID }} + commitSha: ${{ github.event.pull_request.head.sha || github.sha }} + secrets: + APP_PRIVATE_KEY: ${{ secrets.RUNNER_APP_PRIVATE_KEY }} + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a83e2a4c..e8170c7c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -48,4 +48,8 @@ jobs: - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@897895f1e160c830e369f9779632ebc134688e1b + e2e-tests: + needs: publish + uses: ./.github/workflows/e2e-tests.yml +