2022-12-15 13:44:49 -05:00
|
|
|
name: Build
|
2022-12-01 12:42:47 -05:00
|
|
|
|
|
|
|
on:
|
2022-12-01 12:48:11 -05:00
|
|
|
workflow_dispatch:
|
2022-12-01 12:42:47 -05:00
|
|
|
push:
|
2023-02-16 13:28:34 -05:00
|
|
|
branches: ["main", "next"]
|
2022-12-01 12:42:47 -05:00
|
|
|
pull_request:
|
2023-02-16 13:28:34 -05:00
|
|
|
branches: ["main", "next"]
|
2022-12-01 12:42:47 -05:00
|
|
|
|
|
|
|
jobs:
|
2022-12-01 13:28:46 -05:00
|
|
|
build:
|
2024-12-28 11:51:19 +01:00
|
|
|
runs-on: act-runner-user
|
2022-12-01 12:42:47 -05:00
|
|
|
|
|
|
|
steps:
|
2022-12-12 11:02:47 -05:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
cache: yarn
|
2022-12-15 13:44:49 -05:00
|
|
|
cache-dependency-path: |
|
|
|
|
yarn.lock
|
|
|
|
packages/app/yarn.lock
|
|
|
|
packages/core/yarn.lock
|
|
|
|
packages/docs/yarn.lock
|
2024-01-03 15:14:09 -05:00
|
|
|
node-version: 18
|
2022-12-12 11:02:47 -05:00
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: |
|
|
|
|
yarn install --frozen-lockfile
|
|
|
|
|
|
|
|
- name: Build
|
2023-01-13 15:44:29 -05:00
|
|
|
env:
|
|
|
|
NODE_OPTIONS: "--max-old-space-size=8192"
|
2022-12-12 11:02:47 -05:00
|
|
|
run: |
|
|
|
|
yarn build
|
2022-12-01 13:25:39 -05:00
|
|
|
|
2024-12-28 11:51:19 +01:00
|
|
|
- name: Publish artifacts
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: dist
|
|
|
|
path: |
|
|
|
|
packages/app/dist
|
|
|
|
!packages/app/dist/*.static-cms-app.js
|
|
|
|
|
2022-12-01 13:25:39 -05:00
|
|
|
lint:
|
2024-12-28 11:51:19 +01:00
|
|
|
runs-on: act-runner-user
|
2022-12-01 13:28:46 -05:00
|
|
|
|
|
|
|
steps:
|
2022-12-12 11:02:47 -05:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
cache: yarn
|
2022-12-15 13:44:49 -05:00
|
|
|
cache-dependency-path: |
|
|
|
|
yarn.lock
|
|
|
|
packages/app/yarn.lock
|
|
|
|
packages/core/yarn.lock
|
|
|
|
packages/docs/yarn.lock
|
2024-01-03 15:14:09 -05:00
|
|
|
node-version: 18
|
2022-12-12 11:02:47 -05:00
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: |
|
|
|
|
yarn install --frozen-lockfile
|
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
run: |
|
|
|
|
yarn lint
|
2022-12-04 22:15:59 -05:00
|
|
|
|
|
|
|
test:
|
2024-12-28 11:51:19 +01:00
|
|
|
runs-on: act-runner-user
|
2022-12-04 22:15:59 -05:00
|
|
|
|
|
|
|
steps:
|
2022-12-12 11:02:47 -05:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
cache: yarn
|
2022-12-15 13:44:49 -05:00
|
|
|
cache-dependency-path: |
|
|
|
|
yarn.lock
|
|
|
|
packages/app/yarn.lock
|
|
|
|
packages/core/yarn.lock
|
|
|
|
packages/docs/yarn.lock
|
2024-01-03 15:14:09 -05:00
|
|
|
node-version: 18
|
2022-12-12 11:02:47 -05:00
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: |
|
|
|
|
yarn install --frozen-lockfile
|
|
|
|
|
|
|
|
- name: Test
|
2023-01-12 14:51:57 -05:00
|
|
|
env:
|
|
|
|
NODE_OPTIONS: "--max-old-space-size=8192"
|
2022-12-12 11:02:47 -05:00
|
|
|
run: |
|
|
|
|
yarn test:ci
|
|
|
|
|
|
|
|
integration_tests:
|
2024-12-28 11:51:19 +01:00
|
|
|
runs-on: act-runner-user
|
2022-12-12 11:02:47 -05:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
cache: yarn
|
2022-12-15 13:44:49 -05:00
|
|
|
cache-dependency-path: |
|
|
|
|
yarn.lock
|
|
|
|
packages/app/yarn.lock
|
|
|
|
packages/core/yarn.lock
|
|
|
|
packages/docs/yarn.lock
|
2024-01-03 15:14:09 -05:00
|
|
|
node-version: 18
|
2022-12-12 11:02:47 -05:00
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: |
|
|
|
|
yarn install --frozen-lockfile
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
yarn test:integration:ci
|