Skip to content

Commit e3c6963

Browse files
committed
single test attempt
1 parent ccd236f commit e3c6963

File tree

2 files changed

+78
-6
lines changed

2 files changed

+78
-6
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
name: test
55

66
on:
7-
push:
8-
branches:
9-
- develop
10-
pull_request:
11-
branches:
12-
- develop
137

148
jobs:
159
setup:

.github/workflows/test2.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# This workflow will do a clean install of node dependencies, build the source
2+
# code and run tests in block on the latest version of node.
3+
4+
name: test
5+
6+
on:
7+
push:
8+
branches:
9+
- develop
10+
pull_request:
11+
branches:
12+
- develop
13+
14+
jobs:
15+
setup:
16+
runs-on: ubuntu-latest
17+
name: Compile SRE with locales
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- uses: pnpm/action-setup@v4
23+
name: Install pnpm
24+
with:
25+
version: 10
26+
run_install: false
27+
28+
- name: Setup Speech Rule Engine
29+
run: |
30+
pnpm -r i
31+
pnpm build
32+
cd testsuite
33+
pnpm compile
34+
35+
- name: Upload build
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: sre-library
39+
path: |
40+
lib
41+
js
42+
package.json
43+
testsuite/js
44+
testsuite/tests
45+
46+
test:
47+
needs: setup
48+
runs-on: ubuntu-latest
49+
name: SRE jests tests for all
50+
steps:
51+
- name: Checkout
52+
uses: actions/checkout@v4
53+
54+
- uses: pnpm/action-setup@v4
55+
name: Install pnpm
56+
with:
57+
version: 10
58+
run_install: false
59+
60+
- name: Downloading the build
61+
uses: actions/download-artifact@v4
62+
with:
63+
name: sre-library
64+
65+
- name: Set up tests
66+
run: |
67+
pnpm -r i --ignore-scripts
68+
69+
- name: Run tests for all
70+
run: pnpm test:action tests/actions/ --coverageReporters=json
71+
72+
- name: Upload to Codecov
73+
uses: codecov/codecov-action@v5
74+
with:
75+
token: ${{ secrets.CODECOV_TOKEN }}
76+
slug: speech-rule-engine/speech-rule-engine
77+
file: coverage/coverage-final.json
78+
name: codecov-$(date +%Y%m%d)

0 commit comments

Comments
 (0)