Skip to content

Commit 40b5980

Browse files
authored
SWI-5429 Update Test Suite and Workflows (#30)
* SWI-5429 Update Test Suite and Workflows * update template * remove matrix from smoke tests
1 parent a3a437a commit 40b5980

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+98
-99
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151

5252
- name: Install Packages and Test
5353
run: |
54-
npm i
55-
npm test
54+
yarn
55+
yarn test-unit
5656
5757
- name: Publish npm Package
5858
run: |

.github/workflows/test-nightly.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test Main Branch Nightly
1+
name: Nightly Smoke Tests
22

33
on:
44
schedule:
@@ -26,13 +26,8 @@ env:
2626

2727
jobs:
2828
test_main:
29-
name: Test Main Branch Nightly
30-
runs-on: ${{ matrix.os }}
31-
strategy:
32-
matrix:
33-
os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04]
34-
node-version: [16, 18, 20, 22]
35-
fail-fast: false
29+
name: Nightly Smoke Test
30+
runs-on: ubuntu-latest
3631
steps:
3732
- name: Checkout
3833
uses: actions/checkout@v4
@@ -42,14 +37,14 @@ jobs:
4237
- name: Setup Node
4338
uses: actions/setup-node@v4
4439
with:
45-
node-version: ${{ matrix.node-version }}
40+
node-version: 20
4641

4742
- name: Install Packages and Test
4843
run: |
4944
yarn
50-
yarn test
45+
yarn test-smoke
5146
env:
52-
OPERATING_SYSTEM: ${{ matrix.os }}
47+
OPERATING_SYSTEM: "ubuntu"
5348

5449
notify_for_failures:
5550
name: Notify for Failures

.github/workflows/test-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ jobs:
4646
- name: Install Packages and Test
4747
run: |
4848
yarn
49-
yarn test
49+
yarn test-unit
5050
env:
5151
OPERATING_SYSTEM: ${{ matrix.os }}

custom_templates/package.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
"scripts": {
2525
"build": "tsc {{#supportsES6}}&& tsc -p tsconfig.esm.json{{/supportsES6}}",
2626
"prepare": "npm run build",
27+
"test-unit": "jest --coverage --detectOpenHandles --testPathPattern=tests/unit",
28+
"test-smoke": "jest --coverage --detectOpenHandles --testPathPattern=tests/smoke",
2729
"test": "jest --coverage --detectOpenHandles"
2830
},
2931
"dependencies": {

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"scripts": {
2121
"build": "tsc ",
2222
"prepare": "npm run build",
23+
"test-unit": "jest --coverage --detectOpenHandles --testPathPattern=tests/unit",
24+
"test-smoke": "jest --coverage --detectOpenHandles --testPathPattern=tests/smoke",
2325
"test": "jest --coverage --detectOpenHandles"
2426
},
2527
"dependencies": {

0 commit comments

Comments
 (0)