Skip to content

build(deps-dev): bump lint-staged from 15.4.1 to 15.4.2 #1646

build(deps-dev): bump lint-staged from 15.4.1 to 15.4.2

build(deps-dev): bump lint-staged from 15.4.1 to 15.4.2 #1646

Workflow file for this run

name: main
on:
push:
branches:
- main
pull_request: {}
jobs:
install:
name: Install Dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: fernandopasik/actions/setup-node@main
check-format:
name: Check Format
runs-on: ubuntu-latest
needs: install
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: fernandopasik/actions/setup-node@main
- name: Check Format
run: npm run format:check
lint:
name: Lint
runs-on: ubuntu-latest
needs: install
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: fernandopasik/actions/setup-node@main
- name: Lint
run: npm run lint -- --format junit -o lint-results.xml
- name: Upload Report
uses: actions/upload-artifact@v4
if: always()
with:
name: lint-results
path: lint-results.xml
check-types:
name: Check Typescript Types
runs-on: ubuntu-latest
needs: install
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: fernandopasik/actions/setup-node@main
- name: Check Typescript Types
run: npm run check-types
unit-test:
name: Unit Tests
runs-on: ubuntu-latest
needs: install
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: fernandopasik/actions/setup-node@main
- name: Unit Tests
run: npm run test:coverage
env:
NODE_OPTIONS: --test-reporter=spec --test-reporter-destination=stdout --test-reporter=junit --test-reporter-destination=unit-test-results.xml
- name: Upload Report to Codecov
uses: codecov/codecov-action@v5
if: always()
- name: Upload Report
uses: actions/upload-artifact@v4
if: always()
with:
name: unit-test-results
path: unit-test-results.xml
e2e-test:
name: End-2-end Tests
runs-on: ubuntu-latest
needs: install
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: fernandopasik/actions/setup-node@main
- name: Install e2e tests dependencies
run: npm run test:e2e:install
- name: End-2-end Tests
run: npm run test:e2e
build:
name: Build
runs-on: ubuntu-latest
needs:
- check-format
- lint
- check-types
- unit-test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: fernandopasik/actions/setup-node@main
- name: Build
run: npm run build
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: bundle
path: hello-web-components.min.*
size:
name: Check Size
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: fernandopasik/actions/setup-node@main
- name: Download Build Artifact
uses: actions/download-artifact@v4
with:
name: bundle
- name: Check Size
run: npm run size