-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 919 Bytes
/
Copy pathautomated-tests.yml
File metadata and controls
41 lines (33 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Automated Tests
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
working-directory: ./automated-testing
run: npm install
- name: Install Playwright Browsers
working-directory: ./automated-testing
run: npx playwright install --with-deps
- name: Run tests
working-directory: ./automated-testing
run: npm test
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-automated
path: |
automated-testing/playwright-report/
automated-testing/test-results/
retention-days: 30