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:
|
2023-09-11 01:02:00 +03:00
|
|
|
- uses: actions/checkout@v4
|
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
|
2023-10-24 23:20:18 +03:00
|
|
|
- uses: actions/setup-node@v4
|
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
|
2023-09-22 15:57:28 +03:00
|
|
|
uses: coactions/setup-xvfb@v1
|
2021-09-18 07:19:35 +03:00
|
|
|
with:
|
2023-08-07 17:50:43 +03:00
|
|
|
run: pnpm run test:all
|