Skip to content

Commit 42135a7

Browse files
committed
Update working directory for npm and Playwright commands in automated-tests.yml
1 parent 8964948 commit 42135a7

1 file changed

Lines changed: 21 additions & 16 deletions

File tree

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
1-
name: Run Automated Tests
1+
# This is a sample workflow for automated tests
2+
3+
name: Automated Tests
24

35
on:
46
push:
57
branches:
68
- main
79

810
jobs:
9-
test:
11+
build:
1012
runs-on: ubuntu-latest
1113
steps:
12-
- name: Check out repository
13-
uses: actions/checkout@v2
14-
- name: Set up Node.js
15-
uses: actions/setup-node@v3
16-
with:
17-
node-version: '16' # Adjust the Node.js version to match your project
18-
- name: Install dependencies
19-
run: |
20-
npm install
21-
working-directory: ./path/to/your/project # Adjust this path to the correct project folder containing package.json
22-
- name: Run Playwright tests
23-
run: |
24-
npx playwright test
25-
working-directory: ./path/to/your/project # Ensure Playwright runs in the correct directory
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: '14'
21+
22+
- name: Install dependencies
23+
run: |
24+
cd ./automated-testing
25+
npm install
26+
27+
- name: Run Playwright tests
28+
run: |
29+
cd ./automated-testing
30+
npx playwright test

0 commit comments

Comments
 (0)