Skip to content

Commit cf7cb43

Browse files
authored
Merge pull request #6 from openscript-ch/chore/add-first-test
chore: configure tests
2 parents f486bd2 + 79399ce commit cf7cb43

File tree

7 files changed

+2039
-9
lines changed

7 files changed

+2039
-9
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Continuous integration
22

3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
410

511
jobs:
612
build:
@@ -31,7 +37,11 @@ jobs:
3137
run: npm run check:types
3238

3339
- name: Run tests
34-
run: npm run test
40+
run: npm run test:coverage
41+
42+
- name: Submit coverage
43+
uses: codecov/codecov-action@v3
44+
if: matrix.os == 'ubuntu-latest' && matrix.node == '18.x'
3545

3646
- name: Build
3747
run: npm run build

0 commit comments

Comments
 (0)