[Snyk] Upgrade downshift from 8.2.3 to 8.3.2 #427
Workflow file for this run
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: Main | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.19.0] | |
steps: | |
- uses: actions/checkout@v3 | |
- run: npm ci | |
- uses: actions/cache/save@v3 | |
id: npm-cache | |
with: | |
path: | | |
node_modules | |
/home/runner/.cache/Cypress | |
/home/runner/.npm | |
key: ${{ matrix.node-version }}-npm-cache-${{ github.ref }}-${{ hashFiles('package-lock.json') }} | |
build-types: | |
runs-on: ubuntu-latest | |
needs: install | |
strategy: | |
matrix: | |
node-version: [18.19.0] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache/restore@v3 | |
id: npm-cache | |
with: | |
path: | | |
node_modules | |
/home/runner/.cache/Cypress | |
/home/runner/.npm | |
key: ${{ matrix.node-version }}-npm-cache-${{ github.ref }}-${{ hashFiles('package-lock.json') }} | |
- run: npm run build-stylable-types | |
- uses: actions/cache/save@v3 | |
id: types-artefact | |
with: | |
path: st-types | |
key: ${{ matrix.node-version }}-types-artefact-${{ github.ref }}-${{ hashFiles('st-types') }} | |
lint: | |
runs-on: ubuntu-latest | |
needs: build-types | |
strategy: | |
matrix: | |
node-version: [18.19.0] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: actions/cache/restore@v3 | |
id: npm-cache | |
with: | |
path: | | |
node_modules | |
/home/runner/.cache/Cypress | |
/home/runner/.npm | |
key: ${{ matrix.node-version }}-npm-cache-${{ github.ref }}-${{ hashFiles('package-lock.json') }} | |
- uses: actions/cache/restore@v3 | |
id: types-artefact | |
with: | |
path: st-types | |
key: ${{ matrix.node-version }}-types-artefact-${{ github.ref }}-${{ hashFiles('st-types') }} | |
- run: npm run lint | |
typecheck: | |
runs-on: ubuntu-latest | |
needs: build-types | |
strategy: | |
matrix: | |
node-version: [18.19.0] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: actions/cache/restore@v3 | |
id: npm-cache | |
with: | |
path: | | |
node_modules | |
/home/runner/.cache/Cypress | |
/home/runner/.npm | |
key: ${{ matrix.node-version }}-npm-cache-${{ github.ref }}-${{ hashFiles('package-lock.json') }} | |
- uses: actions/cache/restore@v3 | |
id: types-artefact | |
with: | |
path: st-types | |
key: ${{ matrix.node-version }}-types-artefact-${{ github.ref }}-${{ hashFiles('st-types') }} | |
- run: npm run typecheck | |
unit-tests: | |
runs-on: ubuntu-latest | |
needs: [lint, typecheck] | |
strategy: | |
matrix: | |
node-version: [18.19.0] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: actions/cache/restore@v3 | |
id: npm-cache | |
with: | |
path: | | |
node_modules | |
/home/runner/.cache/Cypress | |
/home/runner/.npm | |
key: ${{ matrix.node-version }}-npm-cache-${{ github.ref }}-${{ hashFiles('package-lock.json') }} | |
- uses: actions/cache/restore@v3 | |
id: types-artefact | |
with: | |
path: st-types | |
key: ${{ matrix.node-version }}-types-artefact-${{ github.ref }}-${{ hashFiles('st-types') }} | |
- run: npm run unit-tests | |
cypress-component-tests: | |
runs-on: ubuntu-latest | |
needs: unit-tests | |
strategy: | |
matrix: | |
node-version: [18.19.0] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: actions/cache/restore@v3 | |
id: npm-cache | |
with: | |
path: | | |
node_modules | |
/home/runner/.cache/Cypress | |
/home/runner/.npm | |
key: ${{ matrix.node-version }}-npm-cache-${{ github.ref }}-${{ hashFiles('package-lock.json') }} | |
- uses: actions/cache/restore@v3 | |
id: types-artefact | |
with: | |
path: st-types | |
key: ${{ matrix.node-version }}-types-artefact-${{ github.ref }}-${{ hashFiles('st-types') }} | |
- run: npm run cypress run --component |