refactor: monorepo setup with lerna (#243)
This commit is contained in:
committed by
GitHub
parent
dac29fbf3c
commit
504d95c34f
@ -1,15 +1,11 @@
|
||||
name: Core
|
||||
name: Build
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- core/**
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- core/**
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -22,16 +18,18 @@ jobs:
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
cache: yarn
|
||||
cache-dependency-path: core/yarn.lock
|
||||
cache-dependency-path: |
|
||||
yarn.lock
|
||||
packages/app/yarn.lock
|
||||
packages/core/yarn.lock
|
||||
packages/docs/yarn.lock
|
||||
node-version: 16
|
||||
|
||||
- name: Install
|
||||
working-directory: ./core
|
||||
run: |
|
||||
yarn install --frozen-lockfile
|
||||
|
||||
- name: Build
|
||||
working-directory: ./core
|
||||
run: |
|
||||
yarn build
|
||||
|
||||
@ -45,16 +43,18 @@ jobs:
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
cache: yarn
|
||||
cache-dependency-path: core/yarn.lock
|
||||
cache-dependency-path: |
|
||||
yarn.lock
|
||||
packages/app/yarn.lock
|
||||
packages/core/yarn.lock
|
||||
packages/docs/yarn.lock
|
||||
node-version: 16
|
||||
|
||||
- name: Install
|
||||
working-directory: ./core
|
||||
run: |
|
||||
yarn install --frozen-lockfile
|
||||
|
||||
- name: Lint
|
||||
working-directory: ./core
|
||||
run: |
|
||||
yarn lint
|
||||
|
||||
@ -68,16 +68,18 @@ jobs:
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
cache: yarn
|
||||
cache-dependency-path: core/yarn.lock
|
||||
cache-dependency-path: |
|
||||
yarn.lock
|
||||
packages/app/yarn.lock
|
||||
packages/core/yarn.lock
|
||||
packages/docs/yarn.lock
|
||||
node-version: 16
|
||||
|
||||
- name: Install
|
||||
working-directory: ./core
|
||||
run: |
|
||||
yarn install --frozen-lockfile
|
||||
|
||||
- name: Test
|
||||
working-directory: ./core
|
||||
run: |
|
||||
yarn test:ci
|
||||
|
||||
@ -91,15 +93,17 @@ jobs:
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
cache: yarn
|
||||
cache-dependency-path: core/yarn.lock
|
||||
cache-dependency-path: |
|
||||
yarn.lock
|
||||
packages/app/yarn.lock
|
||||
packages/core/yarn.lock
|
||||
packages/docs/yarn.lock
|
||||
node-version: 16
|
||||
|
||||
- name: Install
|
||||
working-directory: ./core
|
||||
run: |
|
||||
yarn install --frozen-lockfile
|
||||
|
||||
- name: Test
|
||||
working-directory: ./core
|
||||
run: |
|
||||
yarn test:integration:ci
|
6
.github/workflows/codeql.yml
vendored
6
.github/workflows/codeql.yml
vendored
@ -14,15 +14,9 @@ name: "CodeQL"
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- core/**
|
||||
- docs/**
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- core/**
|
||||
- docs/**
|
||||
schedule:
|
||||
- cron: "0 9 * * 4"
|
||||
|
||||
|
54
.github/workflows/docs.yml
vendored
54
.github/workflows/docs.yml
vendored
@ -1,54 +0,0 @@
|
||||
name: Docs
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- docs/**
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- docs/**
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
cache: yarn
|
||||
cache-dependency-path: docs/yarn.lock
|
||||
node-version: 16
|
||||
|
||||
- name: Install
|
||||
working-directory: ./docs
|
||||
run: |
|
||||
yarn install --frozen-lockfile
|
||||
|
||||
- name: Lint
|
||||
working-directory: ./docs
|
||||
run: |
|
||||
yarn lint
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
integration_tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
Reference in New Issue
Block a user