2022-11-25 20:25:03 +00:00
|
|
|
name: UI
|
2022-10-14 16:59:20 +00:00
|
|
|
|
2022-03-28 19:13:27 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-10-26 16:43:05 +00:00
|
|
|
- "develop"
|
|
|
|
- "1.0-develop"
|
2022-03-28 19:13:27 +00:00
|
|
|
pull_request:
|
2022-10-26 16:43:05 +00:00
|
|
|
branches:
|
|
|
|
- "develop"
|
|
|
|
- "1.0-develop"
|
2022-10-14 16:59:20 +00:00
|
|
|
|
2022-03-28 19:13:27 +00:00
|
|
|
jobs:
|
2022-11-28 16:56:03 +00:00
|
|
|
lint:
|
|
|
|
name: Lint
|
2023-02-23 21:37:12 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2022-11-28 16:56:03 +00:00
|
|
|
steps:
|
|
|
|
- name: Code checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2023-02-23 21:39:45 +00:00
|
|
|
- name: Install pnpm
|
|
|
|
uses: pnpm/action-setup@v2
|
|
|
|
|
2022-11-28 16:56:03 +00:00
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18
|
2023-02-23 21:37:12 +00:00
|
|
|
cache: pnpm
|
2022-11-28 16:56:03 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
2023-02-23 21:37:12 +00:00
|
|
|
run: pnpm install
|
2022-11-28 16:56:03 +00:00
|
|
|
|
|
|
|
- name: Lint
|
2023-02-23 21:37:12 +00:00
|
|
|
run: pnpm run lint
|
2022-11-28 16:56:03 +00:00
|
|
|
|
|
|
|
tests:
|
|
|
|
name: Tests
|
2023-02-23 21:37:12 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2022-03-28 19:13:27 +00:00
|
|
|
strategy:
|
2022-10-26 16:43:05 +00:00
|
|
|
fail-fast: false
|
2022-03-28 19:13:27 +00:00
|
|
|
matrix:
|
2022-11-28 16:56:03 +00:00
|
|
|
node: [16, 18]
|
2022-03-28 19:13:27 +00:00
|
|
|
steps:
|
2022-11-28 16:56:03 +00:00
|
|
|
- name: Code checkout
|
2022-10-14 16:59:20 +00:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2023-02-23 21:39:45 +00:00
|
|
|
- name: Install pnpm
|
|
|
|
uses: pnpm/action-setup@v2
|
|
|
|
|
2022-10-14 16:59:20 +00:00
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2022-11-28 16:56:03 +00:00
|
|
|
node-version: ${{ matrix.node }}
|
2023-02-23 21:37:12 +00:00
|
|
|
cache: pnpm
|
2022-10-14 16:59:20 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
2023-02-23 21:37:12 +00:00
|
|
|
run: pnpm install
|
2022-10-14 16:59:20 +00:00
|
|
|
|
|
|
|
- name: Build
|
2023-02-23 21:37:12 +00:00
|
|
|
run: pnpm run build
|
2022-11-25 20:25:03 +00:00
|
|
|
|
|
|
|
- name: Tests
|
2023-02-23 21:37:12 +00:00
|
|
|
run: pnpm run test
|