This repository was archived by the owner on Mar 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 169
92 lines (76 loc) · 2.12 KB
/
build.yml
File metadata and controls
92 lines (76 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Build Job to be used between main and pages workflows
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build
on:
# Reusable Workflow
workflow_call:
inputs:
# Run end to end tests
test:
required: false
type: boolean
default: false
# Upload built files as static artifact
upload:
required: false
type: boolean
default: false
jobs:
build:
timeout-minutes: 10
# Match Development Operating System
runs-on: windows-latest
steps:
# Setup
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
# Match Development Node Version
node-version: "20.x"
# Tool Versions
- name: Node Version
run: node --version
- name: NPM Version
run: npm --version
# Package Setup
- name: clean install
run: npm ci
# 'npm run build' broken into separate steps
- name: clean
run: npm run clean
- name: style
run: npm run style-check
# - name: spell-check
# run: npm run spell-check --if-present
# - name: lint
# run: npm run lint
# - name: compile
# run: npm run compile
- name: build
run: npm run build
env:
CI: false
# - name: Upload static files as artifact
# if: inputs.upload
# uses: actions/upload-pages-artifact@v1
# with:
# path: dist/
- name: Upload static files as artifact
if: inputs.upload
uses: actions/upload-pages-artifact@v1
with:
path: packages/editor/build/
## end to end tests
# - name: Install Playwright Browsers
# if: inputs.test
# run: npm run playwright-install
# - name: Run Playwright tests
# if: inputs.test
# run: npm run playwright-test
# - uses: actions/upload-artifact@v3
# if: inputs.test
# with:
# name: playwright-report
# path: playwright-report/
# retention-days: 30