117 lines
2.4 KiB
YAML
Raw 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:
2022-12-01 12:42:47 -05:00
runs-on: ubuntu-latest
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
2022-12-01 13:25:39 -05:00
lint:
2022-12-01 13:28:46 -05:00
runs-on: ubuntu-latest
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
2022-12-04 22:15:59 -05:00
test:
runs-on: ubuntu-latest
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
2023-01-12 14:51:57 -05:00
env:
NODE_OPTIONS: "--max-old-space-size=8192"
run: |
yarn test:ci
2023-02-06 09:04:13 -05:00
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
integration_tests:
runs-on: ubuntu-latest
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