Skip to content

run end to end tests #30

run end to end tests

run end to end tests #30

Workflow file for this run

# file: .github/workflows/preview.yaml
on:
pull_request:
branches:
- main
jobs:
preview:
runs-on: ubuntu-latest
steps:
- name: Context
uses: okteto/context@latest
with:
url: ${{secrets.OKTETO_URL}}
token: ${{ secrets.OKTETO_TOKEN }}
- name: Deploy preview environment
uses: okteto/deploy-preview@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: oktaco-pr-${{ github.event.number }}
timeout: 15m
scope: global
- name: Checkout code
uses: actions/checkout@v4
- name: Run end to end tests
uses: okteto/test@latest
with:
tests: e2e
namespace: oktaco-pr-${{ github.event.number }}
- name: save result
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: e2e/playwright-report/
retention-days: 30