2021-06-16 17:58:22 +03:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-09-06 22:47:09 +03:00
|
|
|
branches: [main]
|
2021-06-16 17:58:22 +03:00
|
|
|
pull_request:
|
2021-09-06 22:47:09 +03:00
|
|
|
branches: [main]
|
2021-06-16 17:58:22 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-09-18 07:19:35 +03:00
|
|
|
runs-on: ubuntu-latest
|
2021-06-16 17:58:22 +03:00
|
|
|
|
|
|
|
steps:
|
2022-03-04 01:57:40 +03:00
|
|
|
- uses: actions/checkout@v3
|
2022-05-08 21:51:47 +03:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2022-10-10 05:17:27 +03:00
|
|
|
- uses: nrwl/nx-set-shas@v3
|
2022-05-08 16:49:09 +03:00
|
|
|
- uses: pnpm/action-setup@v2
|
2022-02-26 17:57:20 +03:00
|
|
|
- uses: actions/setup-node@v3
|
2022-01-23 01:17:29 +03:00
|
|
|
with:
|
|
|
|
node-version: 'lts/*'
|
2022-05-08 16:49:09 +03:00
|
|
|
cache: 'pnpm'
|
2022-05-08 21:51:47 +03:00
|
|
|
- name: Install dependencies
|
|
|
|
run: pnpm install
|
|
|
|
- name: Check formatting
|
|
|
|
run: pnpm run format:check
|
|
|
|
- name: Build
|
2023-08-07 17:50:43 +03:00
|
|
|
run: pnpm run build:all
|
2022-05-08 21:51:47 +03:00
|
|
|
- name: Lint
|
2023-08-07 17:50:43 +03:00
|
|
|
run: pnpm run lint:all
|
2022-05-08 21:51:47 +03:00
|
|
|
- name: Test
|
2021-09-18 07:19:35 +03:00
|
|
|
uses: GabrielBB/xvfb-action@v1
|
|
|
|
with:
|
2023-08-07 17:50:43 +03:00
|
|
|
run: pnpm run test:all
|