mirror of
https://github.com/zkitter/ui.git
synced 2026-01-09 13:18:00 -05:00
* add validate script that runs concurrent static checks * split unit test and other static checks in 2 different workflows * fix infinite loop test script * do not check coverage when running tests in ci * update lock file
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Code Quality
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
format-lint-build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
|
|
- uses: pnpm/action-setup@v2.2.4
|
|
name: Install pnpm
|
|
id: pnpm-install
|
|
with:
|
|
version: 7
|
|
run_install: false
|
|
|
|
- name: Get pnpm store directory
|
|
id: pnpm-cache
|
|
shell: bash
|
|
run: |
|
|
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
|
|
- uses: actions/cache@v3
|
|
name: Setup pnpm cache
|
|
with:
|
|
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pnpm-store-
|
|
- name: Install dependencies
|
|
run: pnpm i --ignore-scripts --shamefully-hoist # install a flat node_modules dir like npm https://pnpm.io/faq#solution-3
|
|
|
|
- name: Validate
|
|
run: pnpm run validate
|
|
|