Skip to content

Commit

Permalink
use setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
schoren committed Sep 10, 2024
1 parent 50e080a commit 663af51
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,23 @@ jobs:
uses: kubeshop/tracetest-github-action@v1
with:
token: ${{secrets.TRACETEST_CLI_TOKEN}}

# playwright is required to run the script
# that sets up the initial org/env and gathers the token etc
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test

- name: Pull Trace based test definitions
env:
GH_USERNAME: ${{ secrets.TRACETEST_USER_GH_USERNAME }}
GH_PASSWORD: ${{ secrets.TRACETEST_USER_GH_PASSWORD }}
GH_SECRET: ${{ secrets.TRACETEST_USER_GH_SECRET }}
OUTPUT_TOKEN_FILE: "/tmp/token.json"
run: |
BASEDIR=$(pwd)
TESTS_DIR="/tmp/tracetest-cloud/testing"
cd /tmp
# sparse checkout of the testing directory
Expand All @@ -56,5 +70,11 @@ jobs:
sudo echo "127.0.0.1 tracetest.localdev" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 pokeshop.localdev" | sudo tee -a /etc/hosts
# run script for initial configuration
npx playwright test $TESTS_DIR/e2e-tracetesting/tests/setup/extract-default-token.setup.ts --grep '@manual'
cat $OUTPUT_TOKEN_FILE
cat $OUTPUT_TOKEN_FILE | jq
tracetest run testsuite -f /tmp/tracetest-cloud/testing/server-tracetesting --vars ./tests/vars/ci.yaml
tracetest run testsuite -f $TESTS_DIR/server-tracetesting --vars ./tests/vars/ci.yaml

0 comments on commit 663af51

Please sign in to comment.