Skip to content

Commit 6714527

Browse files
committed
refactor: update CI workflows for improved testing and build steps
1 parent 0780c71 commit 6714527

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
name: "Copilot Setup Steps"
1+
name: "CI - Build & Test"
22

33
on:
44
workflow_dispatch:
55
push:
6-
paths:
7-
- .github/workflows/copilot-setup-steps.yml
6+
branches: [ main ]
87
pull_request:
9-
paths:
10-
- .github/workflows/copilot-setup-steps.yml
8+
branches: [ main ]
119

1210
jobs:
13-
copilot-setup-steps:
11+
test:
1412
runs-on: ubuntu-latest
1513

1614
permissions:
@@ -29,6 +27,16 @@ jobs:
2927
- name: Install Playwright Browsers
3028
run: npx playwright install --with-deps
3129

32-
# Customize this step as needed
3330
- name: Build application
34-
run: npx run build
31+
run: npm run build
32+
33+
- name: Run Playwright Tests
34+
run: npx playwright test
35+
36+
- name: Upload Playwright Report
37+
uses: actions/upload-artifact@v4
38+
if: always()
39+
with:
40+
name: playwright-report
41+
path: playwright-report/
42+
retention-days: 30

.github/workflows/main.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ jobs:
1414
- name: Setup Node
1515
uses: actions/setup-node@v4
1616

17-
- name: Install dependencies
18-
run: |
19-
node -v
20-
npm -v
21-
npm ci --no-fund
22-
2317
- name: Check Prettier
2418
run: npm run check-format
2519

0 commit comments

Comments
 (0)