Skip to content

Commit 863bef0

Browse files
authored
Run GitHub Actions to Run Only on Pull Requests (#34)
* UPD: Change e2e workflow only on PR * UPD: Added missing lines of deleted code
1 parent ce64c58 commit 863bef0

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/run-tests.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
name: Test and E2E tests
2-
run-name: Run tests and E2E tests
3-
1+
name: Test and E2E tests on PR
2+
run-name: Run tests and E2E tests on PR
43
on:
5-
push:
64
pull_request:
75
branches:
86
- main
@@ -21,18 +19,18 @@ jobs:
2119
run-e2e-tests:
2220
runs-on: ubuntu-latest
2321
steps:
24-
- uses: actions/checkout@v4 #chekcout te repository
22+
- uses: actions/checkout@v4
2523
- name: Use Node.js
26-
uses: actions/setup-node@v3 #setup node version 20
24+
uses: actions/setup-node@v3
2725
with:
2826
node-version: '20'
2927

30-
- name: Install dependencies #install dependencies
28+
- name: Install dependencies
3129
run: yarn install
3230

3331
- name: Run E2E tests
3432
env:
35-
PLAYWRIGHT_URL: http://localhost:3000 # set the URL of the app to test with playwright
36-
CI: # unset CI because it is set by default in Github actions
33+
PLAYWRIGHT_URL: http://localhost:3000
34+
CI:
3735
run: |
3836
yarn test:e2e

0 commit comments

Comments
 (0)