diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 2427e31..7183671 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,11 +1,11 @@ -name: Test and E2E tests -run-name: Run tests and E2E tests +name: Test and E2E tests on PR +run-name: Run tests and E2E tests on PR on: - push: pull_request: branches: - main + jobs: run-tests: runs-on: ubuntu-latest @@ -21,18 +21,13 @@ jobs: run-e2e-tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 #chekcout te repository + - uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v3 #setup node version 20 + uses: actions/setup-node@v3 with: node-version: '20' - - - name: Install dependencies #install dependencies - run: yarn install - + - run: yarn install - name: Run E2E tests env: - PLAYWRIGHT_URL: http://localhost:3000 # set the URL of the app to test with playwright - CI: # unset CI because it is set by default in Github actions - run: | - yarn test:e2e + PLAYWRIGHT_URL: http://localhost:3000 + run: yarn test:e2e