diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index a36c3e34e3..e936d9e86e 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -7,14 +7,22 @@ on: workflow_dispatch: jobs: - prepare: + http-metrics-by-endpoint: runs-on: ubuntu-latest + timeout-minutes: 10 + env: + CWD: ./examples/http-metrics-by-endpoint + defaults: + run: + working-directory: ${{ env.CWD }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - - name: Prepare examples - run: cp ./examples/websockets/.github/workflows/ci.yml ./.github/workflows/example-websockets.yml + - name: Install + run: npm ci - websockets: - uses: ./.github/workflows/example-websockets.yml + - name: Test + uses: artilleryio/action-cli@v1 + with: + command: run ${{ env.CWD }}/endpoint-metrics.yml diff --git a/examples/websockets/.github/workflows/ci.yml b/examples/websockets/.github/workflows/ci.yml deleted file mode 100644 index 086a58fbb6..0000000000 --- a/examples/websockets/.github/workflows/ci.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: test-websockets - -on: - push: - branches: [main] - workflow_call: - workflow_dispatch: - -jobs: - test: - runs-on: ubuntu-latest - timeout-minutes: 60 - defaults: - run: - working-directory: ./examples/websockets - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Install dependencies - run: npm ci - - - name: Run load tests - uses: artilleryio/action-cli@v1 - with: - command: run test.yml