Skip to content

Commit 2a93d1d

Browse files
committed
Run tests on PR to main, not merge
1 parent 4166531 commit 2a93d1d

2 files changed

Lines changed: 27 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: ["main"]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: "20"
18+
cache: "npm"
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Install Playwright Browsers
24+
run: npx playwright install --with-deps chromium
25+
26+
- name: Run tests
27+
run: npm test

.github/workflows/deploy.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,6 @@ jobs:
6767
- name: Install dependencies
6868
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
6969

70-
- name: Install Playwright Browsers
71-
run: npx playwright install --with-deps chromium
72-
73-
- name: Run tests
74-
run: npm test
75-
7670
- name: Build with Next.js
7771
run: ${{ steps.detect-package-manager.outputs.runner }} next build
7872
env:

0 commit comments

Comments
 (0)