-
Notifications
You must be signed in to change notification settings - Fork 268
38 lines (38 loc) · 1.14 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: CI - Code styles, unit tests
on:
push:
branches: [main]
pull_request:
branches:
- main
concurrency:
group: ${{ github.head_ref }}-codestyles
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- run: |
npm ci
(cd ./packages/block-avatar;pwd;npm ci)
(cd ./packages/block-button;pwd;npm ci)
(cd ./packages/block-divider;pwd;npm ci)
(cd ./packages/block-heading;pwd;npm ci)
(cd ./packages/block-html;pwd;npm ci)
(cd ./packages/block-image;pwd;npm ci)
(cd ./packages/block-spacer;pwd;npm ci)
(cd ./packages/block-text;pwd;npm ci)
(cd ./packages/document-core;pwd;npm ci)
(cd ./packages/editor-sample;pwd;npm ci)
(cd ./packages/email-builder;pwd;npm ci)
- run: npx eslint .
- run: npx prettier . --check
- run: npm test
- run: ./node_modules/.bin/tsc --noEmit