Skip to content

Commit c8bea7c

Browse files
committed
Add GitHub Actions CI workflow
1 parent 31cbb90 commit c8bea7c

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
defaults:
14+
run:
15+
working-directory: react-testing
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
25+
- name: Install dependencies
26+
run: npm install
27+
28+
- name: Build
29+
run: npm run build
30+
31+
- name: Test
32+
run: npm test -- --watchAll=false

0 commit comments

Comments
 (0)