From ffd32ca0f4508d55fa9bae8744fd9a1e0d0a015d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20=C5=BBydek?= Date: Thu, 20 Feb 2025 11:50:27 +0100 Subject: [PATCH 1/2] ci: add e2e tests workflow --- .github/workflows/e2e-tests.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/publish.yml | 4 ++++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/e2e-tests.yml diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml new file mode 100644 index 00000000..fc444ef2 --- /dev/null +++ b/.github/workflows/e2e-tests.yml @@ -0,0 +1,29 @@ +name: E2E Tests +on: + # TODO Remove + pull_request: + 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 + From cd496598f7ea185d5d5ae15dbce0512db9c381f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20=C5=BBydek?= Date: Thu, 20 Feb 2025 12:00:22 +0100 Subject: [PATCH 2/2] ci: remove pull request trigger --- .github/workflows/e2e-tests.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index fc444ef2..49e07d0c 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -1,7 +1,5 @@ name: E2E Tests on: - # TODO Remove - pull_request: workflow_call: jobs: