Skip to content

Commit

Permalink
Patching dev dependency vulns. (#40)
Browse files Browse the repository at this point in the history
* Patching dev dependency vulns.

* increasing node version

* babel-preset-expo

* babel-preset-expo

* file mocking for images
  • Loading branch information
adrian-asher-cko authored Apr 9, 2024
1 parent 3e10ef3 commit d45c573
Show file tree
Hide file tree
Showing 5 changed files with 21,500 additions and 23,661 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12
node-version: 21
- run: npm ci
- run: npm test
- name: Upload coverage to Codecov
Expand All @@ -29,10 +29,10 @@ jobs:
needs: test-and-coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12
node-version: 21
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12
node-version: 21
- run: npm ci
- run: npm test
9 changes: 9 additions & 0 deletions __mocks__/fileTransformer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const path = require('path');

module.exports = {
process(sourceText, sourcePath, options) {
return {
code: `module.exports = ${JSON.stringify(path.basename(sourcePath))};`,
};
},
};
Loading

0 comments on commit d45c573

Please sign in to comment.