[Snyk] Security upgrade axios from 0.27.2 to 1.6.0 #3001
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Requests | |
env: | |
CI: "true" | |
on: | |
pull_request: | |
jobs: | |
test: | |
name: Node ${{ matrix.node }} and ${{ matrix.os }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- 14 | |
- 16 | |
- 18 | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache node modules | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: install | |
run: npm ci | |
- name: lint | |
run: npm run lint | |
- name: test | |
run: npm test | |
- name: build | |
run: npm run build | |
- name: API Extractor | |
run: npm run api-extractor |