Denys Konovalov f911ea4879
Some checks failed
Build / test (push) Failing after 0s
Cypress Tests / cypress-run (2) (push) Failing after 0s
Cypress Tests / cypress-run (1) (push) Failing after 0s
Build / build (push) Failing after 0s
Build / lint (push) Failing after 0s
Build / integration_tests (push) Failing after 0s
chore(workflows): Adapt action workflows
2024-12-28 11:51:19 +01:00

122 lines
2.5 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: actions/checkout@v3
- name: Setup Node
uses: 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: 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: actions/checkout@v3
- name: Setup Node
uses: 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: actions/checkout@v3
- name: Setup Node
uses: 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: actions/checkout@v3
- name: Setup Node
uses: 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