diff --git a/.github/workflows/jest-coverage.yml b/.github/workflows/jest-coverage.yml
index 52b65e0b08..f6eeb34241 100644
--- a/.github/workflows/jest-coverage.yml
+++ b/.github/workflows/jest-coverage.yml
@@ -1,33 +1,67 @@
-name: Jest Coverage Check
+# name: Jest Coverage Check
-on:
- pull_request:
- branches:
- - develop
- - main
- - release/v*
+# on:
+# pull_request:
+# branches:
+# - develop
+# - main
+# - release/v*
-jobs:
- jest_coverage:
- runs-on: ubuntu-latest
+# jobs:
+# jest_coverage:
+# runs-on: ubuntu-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v4
+# steps:
+# - name: Checkout code
+# uses: actions/checkout@v4
- - name: Install dependencies
- run: cd frontend && yarn install
+# - name: Install dependencies
+# run: cd frontend && yarn install
- - name: npm test-run-changed
- run: cd frontend && npm run test-changedsince
+# - name: npm test-run-changed
+# run: cd frontend && npm run test-changedsince
- - name: Upload Coverage Results
- uses: actions/upload-artifact@v2
- with:
- name: coverage
- path: ./frontend/coverage
+# - name: Upload Coverage Results
+# uses: actions/upload-artifact@v2
+# with:
+# name: coverage
+# path: ./frontend/coverage
+
+# - name: Display Coverage Summary
+# run: |
+# echo "Coverage Summary:"
+# cat coverage/lcov-report/index.html | grep -oP '(?<=).*(?=%)' | tail -n 1
+
+name: tests(push) - install, lint, test:changedsince
- - name: Display Coverage Summary
- run: |
- echo "Coverage Summary:"
- cat coverage/lcov-report/index.html | grep -oP '(?<=).*(?=%)' | tail -n 1
+on: [push]
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest, windows-latest, macOS-latest]
+ node-version: [10.x, 12.x]
+ steps:
+ - uses: actions/checkout@v2
+ - run: |
+ git fetch --no-tags --depth=1 origin develop
+ git checkout -b develop
+ git checkout ${{ github.event.pull_request.head.sha }}
+ - name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: npm install
+ run: npm install
+ env:
+ CI: true
+ - name: npm run lint
+ run: npm run lint
+ env:
+ CI: true
+ - name: npm run test:changedsince
+ run: npm run test:changedsince
+ env:
+ CI: true
diff --git a/frontend/package.json b/frontend/package.json
index a72cbf1725..ead5e15a88 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -24,7 +24,7 @@
"commitlint": "commitlint --edit $1",
"test": "jest --coverage",
"test:onlychanged": "jest --onlyChanged --coverage",
- "test-changedsince": "jest --changedSince=develop^ --coverage"
+ "test-changedsince": "jest --changedSince=develop --coverage"
},
"engines": {
"node": ">=16.15.0"