Skip to content

build(deps): bump rollup, @web/dev-server, @web/dev-server-rollup and @web/test-runner #1546

build(deps): bump rollup, @web/dev-server, @web/dev-server-rollup and @web/test-runner

build(deps): bump rollup, @web/dev-server, @web/dev-server-rollup and @web/test-runner #1546

Workflow file for this run

name: Web Components PR
on:
pull_request:
paths:
- 'packages/fds-components-web/**'
- '.storybook/**'
- 'themes/fds-theme/**'
- 'package.json'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- name: Cache Node.js modules
uses: actions/cache@v3
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
# Setup
- name: Install Dependencies
run: npm ci --loglevel=error
env:
SKIP_POST_INSTALL: true
- name: Build web components
run: npm run build
- name: Build tippy theme
run: npm run build:theme-tippy
# Test
- name: Unit tests
run: npm run test
- name: Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./wc-coverage/lcov.info
fail_ci_if_error: true
verbose: true
# Storybook
- name: Build Storybook & deploy to Chromatic
if: github.event.pull_request.draft == false
uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
buildScriptName: build:storybook
- name: Compliance Check
run: npm run compliance:check