We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c27d267 commit 1ca10c5Copy full SHA for 1ca10c5
1 file changed
.github/workflows/reactci.yml
@@ -0,0 +1,32 @@
1
+name: React CI
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
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