Skip to content

Commit

Permalink
[Snyk] Upgrade axios from 0.21.3 to 0.21.4 (#71)
Browse files Browse the repository at this point in the history
* fix: upgrade axios from 0.21.3 to 0.21.4
* fixed github actions to use Node.js 14 for pipelines
* README updates

Snyk has created this PR to upgrade axios from 0.21.3 to 0.21.4.

See this package in npm:


See this project in Snyk:
https://app.snyk.io/org/ramgrandhi/project/2d29e7ed-6731-4fcd-9b67-a24851328560?utm_source=github&utm_medium=referral&page=upgrade-pr

* Updated github action scripts

* install node14 before tests

* use node14 for tests

* use node14 for unit-tests

* runs multiple scripts as steps

* adds all scripts in one step

* run node14 on pipelines

Co-authored-by: ram <[email protected]>
  • Loading branch information
snyk-bot and ram authored Dec 20, 2021
1 parent c9c3c0e commit a24e0ca
Show file tree
Hide file tree
Showing 5 changed files with 414 additions and 382 deletions.
52 changes: 38 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'tests'
name: "tests"
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
Expand All @@ -12,18 +12,30 @@ jobs:
Unit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
run: yarn install
- name: Execute Unit Tests
run: yarn test:unit
- name: Collect Coverage
- uses: actions/checkout@v2
- name: Install Node14 and Test
run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm --version
nvm install 14
node --version
yarn install
nvm alias default 14
node --version
yarn test:unit
- name: Collect coverage
run: ./node_modules/codecov/bin/codecov

E2E:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout
uses: actions/checkout@v2
- name: Setup E2E
run: yarn run test:e2e:setup:background
Expand All @@ -32,8 +44,20 @@ jobs:
- name: Sleep for 60 seconds
uses: kibertoad/[email protected]
with:
time: '60s'
- name: Install
run: yarn install
- name: Execute E2E
run: yarn test:e2e
time: "60s"
- name: Install Node14 and Test
run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm --version
nvm install 14
node --version
yarn install
nvm alias default 14
node --version
yarn test:e2e
Loading

0 comments on commit a24e0ca

Please sign in to comment.