122 lines
2.6 KiB
YAML
Raw Permalink Normal View History

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:
runs-on: act-runner-user
2022-12-01 12:42:47 -05:00
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
2022-12-01 13:25:39 -05:00
- 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
2022-12-01 13:25:39 -05:00
lint:
runs-on: act-runner-user
2022-12-01 13:28:46 -05:00
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
2022-12-04 22:15:59 -05:00
test:
runs-on: act-runner-user
2022-12-04 22:15:59 -05:00
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
2023-01-12 14:51:57 -05:00
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