Denys Konovalov
ac9c542672
Some checks failed
Build / build (push) Failing after 1m31s
Build / lint (push) Failing after 6s
Build / test (push) Failing after 6s
Build / integration_tests (push) Failing after 6s
Cypress Tests / cypress-run (1) (push) Failing after 38s
Cypress Tests / cypress-run (2) (push) Failing after 8s
122 lines
2.6 KiB
YAML
122 lines
2.6 KiB
YAML
name: Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ["main", "next"]
|
|
pull_request:
|
|
branches: ["main", "next"]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: act-runner-user
|
|
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v3
|
|
|
|
- name: Setup Node
|
|
uses: https://github.com/actions/setup-node@v3
|
|
with:
|
|
cache: yarn
|
|
cache-dependency-path: |
|
|
yarn.lock
|
|
packages/app/yarn.lock
|
|
packages/core/yarn.lock
|
|
packages/docs/yarn.lock
|
|
node-version: 18
|
|
|
|
- name: Install
|
|
run: |
|
|
yarn install --frozen-lockfile
|
|
|
|
- name: Build
|
|
env:
|
|
NODE_OPTIONS: "--max-old-space-size=8192"
|
|
run: |
|
|
yarn build
|
|
|
|
- name: Publish artifacts
|
|
uses: https://github.com/actions/upload-artifact@v4
|
|
with:
|
|
name: dist
|
|
path: |
|
|
packages/app/dist
|
|
!packages/app/dist/*.static-cms-app.js
|
|
|
|
lint:
|
|
runs-on: act-runner-user
|
|
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v3
|
|
|
|
- name: Setup Node
|
|
uses: https://github.com/actions/setup-node@v3
|
|
with:
|
|
cache: yarn
|
|
cache-dependency-path: |
|
|
yarn.lock
|
|
packages/app/yarn.lock
|
|
packages/core/yarn.lock
|
|
packages/docs/yarn.lock
|
|
node-version: 18
|
|
|
|
- name: Install
|
|
run: |
|
|
yarn install --frozen-lockfile
|
|
|
|
- name: Lint
|
|
run: |
|
|
yarn lint
|
|
|
|
test:
|
|
runs-on: act-runner-user
|
|
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v3
|
|
|
|
- name: Setup Node
|
|
uses: https://github.com/actions/setup-node@v3
|
|
with:
|
|
cache: yarn
|
|
cache-dependency-path: |
|
|
yarn.lock
|
|
packages/app/yarn.lock
|
|
packages/core/yarn.lock
|
|
packages/docs/yarn.lock
|
|
node-version: 18
|
|
|
|
- name: Install
|
|
run: |
|
|
yarn install --frozen-lockfile
|
|
|
|
- name: Test
|
|
env:
|
|
NODE_OPTIONS: "--max-old-space-size=8192"
|
|
run: |
|
|
yarn test:ci
|
|
|
|
integration_tests:
|
|
runs-on: act-runner-user
|
|
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v3
|
|
|
|
- name: Setup Node
|
|
uses: https://github.com/actions/setup-node@v3
|
|
with:
|
|
cache: yarn
|
|
cache-dependency-path: |
|
|
yarn.lock
|
|
packages/app/yarn.lock
|
|
packages/core/yarn.lock
|
|
packages/docs/yarn.lock
|
|
node-version: 18
|
|
|
|
- name: Install
|
|
run: |
|
|
yarn install --frozen-lockfile
|
|
|
|
- name: Test
|
|
run: |
|
|
yarn test:integration:ci
|