Skip to content

Commit 1ca10c5

Browse files
committed
commeted
1 parent c27d267 commit 1ca10c5

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/reactci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: React CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '18'
21+
22+
- name: npm ci
23+
run: npm ci
24+
25+
- name: Install dependencies
26+
run: npm install vite@latest
27+
28+
- name: Run tests
29+
run: npm test --if-present
30+
31+
- name: Build project
32+
run: npm run build --if-present

0 commit comments

Comments
 (0)