Skip to content

Commit

Permalink
Run GitHub Actions to Run Only on Pull Requests (#34)
Browse files Browse the repository at this point in the history
* UPD: Change e2e workflow only on PR

* UPD: Added missing lines of deleted code
  • Loading branch information
AGiljanovic authored May 23, 2024
1 parent ce64c58 commit 863bef0
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
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
Expand All @@ -21,18 +19,18 @@ 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
- name: Install dependencies
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
PLAYWRIGHT_URL: http://localhost:3000
CI:
run: |
yarn test:e2e

0 comments on commit 863bef0

Please sign in to comment.