Skip to content

Commit a65b2d0

Browse files
Copilotjbampton
andauthored
Add CI workflow to run Jest tests on PRs
Agent-Logs-Url: https://github.com/NextCommunity/NextCommunity.github.io/sessions/c8d9dac5-e6cd-4e41-a424-b7782d082bcb Co-authored-by: jbampton <418747+jbampton@users.noreply.github.com>
1 parent a5b846e commit a65b2d0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.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+
permissions:
4+
contents: read
5+
6+
on: [pull_request]
7+
8+
jobs:
9+
test:
10+
name: 🧪 Run tests on ${{ matrix.os }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest]
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18+
with:
19+
persist-credentials: false
20+
- name: Setup Node.js
21+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
22+
with:
23+
node-version: 24
24+
- name: Install dependencies
25+
run: npm install
26+
- name: Run tests
27+
run: npm test

0 commit comments

Comments
 (0)