Files
ui/.github/workflows/code-quality.yml
r1oga f41171441c chore: run gh ci checks concurrently (#129)
* 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
2023-04-06 18:47:40 +02:00

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