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