Skip to content

chore(deps): update storybook monorepo to v8.4.5 #750

chore(deps): update storybook monorepo to v8.4.5

chore(deps): update storybook monorepo to v8.4.5 #750

name: Quality assurance
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
label:
name: Label PR
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
setup:
name: Setup
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set Node version
uses: actions/[email protected]
with:
node-version-file: .nvmrc
cache: yarn
- name: Generate packages cache key
run: ./scripts/checksum.sh ./packages.txt packages
- name: Restore Node modules
id: node-modules
uses: actions/[email protected]
with:
path: |
./node_modules
./applications/*/*/node_modules
./packages/*/node_modules
key: ${{ runner.os }}-modules-v4-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-modules-
- name: Restore packages
id: packages
uses: actions/[email protected]
with:
path: ./packages/*/lib
key: ${{ runner.os }}-packages-v4-${{ hashFiles('**/packages.txt') }}
restore-keys: |
${{ runner.os }}-packages-
- name: Restore cache
id: cache
uses: actions/[email protected]
with:
path: ~/.cache/Cypress
key: ${{ runner.os }}-cache-v4-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-cache-
- name: Install dependencies
if: steps.node-modules.outputs.cache-hit != 'true' || steps.cache.outputs.cache-hit != 'true'
run: yarn
- name: Build packages
if: steps.packages.outputs.cache-hit != 'true' || steps.node-modules.outputs.cache-hit != 'true'
run: yarn package
- name: Lint code
run: yarn lint
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout code
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set Node version
uses: actions/[email protected]
with:
node-version-file: .nvmrc
cache: yarn
- name: Generate packages cache key
run: ./scripts/checksum.sh ./packages.txt packages
- name: Restore Node modules
uses: actions/[email protected]
with:
path: |
./node_modules
./applications/*/*/node_modules
./packages/*/node_modules
key: ${{ runner.os }}-modules-v4-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-modules-
- name: Restore packages
uses: actions/[email protected]
with:
path: ./packages/*/lib
key: ${{ runner.os }}-packages-v4-${{ hashFiles('**/packages.txt') }}
restore-keys: |
${{ runner.os }}-packages-
- name: Unit test
run: yarn test
- name: Fix paths for SonarCloud Scan
run: ./scripts/sonar-scanner-path-fix.sh
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}