Skip to content

Commit 4bf1260

Browse files
committed
Also run tests on deploy
1 parent 2a93d1d commit 4bf1260

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: CI
22

33
on:
4+
push:
5+
branches: ["main"]
46
pull_request:
57
branches: ["main"]
68

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,29 @@ concurrency:
1616
cancel-in-progress: false
1717

1818
jobs:
19+
test:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: "20"
29+
cache: "npm"
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
34+
- name: Install Playwright Browsers
35+
run: npx playwright install --with-deps chromium
36+
37+
- name: Run tests
38+
run: npm test
39+
1940
build:
41+
needs: test
2042
runs-on: ubuntu-latest
2143
steps:
2244
- name: Checkout

0 commit comments

Comments
 (0)