File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Run Automated Tests
1+ # This is a sample workflow for automated tests
2+
3+ name : Automated Tests
24
35on :
46 push :
57 branches :
68 - main
79
810jobs :
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
You can’t perform that action at this time.
0 commit comments