Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…die-util into MAT-6930
  • Loading branch information
ethankaplan committed Mar 25, 2024
2 parents 0ee1bd4 + ea66950 commit e86d947
Show file tree
Hide file tree
Showing 10 changed files with 289 additions and 406 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use Node.js 14.x
uses: actions/setup-node@v2-beta
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 20.x

- name: Cache node modules
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/unit_test_coverage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# This workflow will do the following:
# - perform a clean install of node dependencies
# - lint the source code for errors
# - build the source code
Expand All @@ -20,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [14, 16]
version: [20, 21, 18]
name: Checkout, install, lint, build and test with coverage
runs-on: ubuntu-latest

Expand Down Expand Up @@ -49,7 +48,7 @@ jobs:
run: npm ci

- name: Audit dependencies for security vulnerabilities
run: npm audit
run: npm audit --audit-level=high

- name: Lint the source code
run: npm run-script lint
Expand Down Expand Up @@ -87,17 +86,17 @@ jobs:

upload-codecov-coverage:
name: Upload code coverage to Codecov
needs: build
needs: node_matrix
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Download coverage artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: coverage
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
file: lcov.info
fail_ci_if_error: true
fail_ci_if_error: true
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
moduleNameMapper: {
"\\.(css)$": "identity-obj-proxy",
"single-spa-react/parcel": "single-spa-react/lib/cjs/parcel.cjs",
"^axios$": "axios/dist/node/axios.cjs",
},
setupFilesAfterEnv: ["@testing-library/jest-dom"],
};
Loading

0 comments on commit e86d947

Please sign in to comment.