-
Notifications
You must be signed in to change notification settings - Fork 778
41 lines (34 loc) · 1.31 KB
/
build.yml
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
name: Build Stencil
on:
workflow_call:
# Make this a reusable workflow, no value needed
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
jobs:
build_core:
name: Core
runs-on: 'ubuntu-22.04'
steps:
- name: Checkout Code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
# the pull_request_target event will consider the HEAD of `main` to be the SHA to use.
# attempt to use the SHA associated with a pull request and fallback to HEAD of `main`
ref: ${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge', github.event.number) || '' }}
persist-credentials: false
- name: Get Core Dependencies
uses: ./.github/workflows/actions/get-core-dependencies
- name: Core Build
run: npm run build -- --ci
shell: bash
- name: Validate Build
run: npm run test.dist
shell: bash
- name: Validate Testing
run: npm run test.testing
shell: bash
- name: Upload Build Artifacts
uses: ./.github/workflows/actions/upload-archive
with:
name: stencil-core
output: stencil-core-build.zip
paths: cli compiler dev-server internal mock-doc scripts/build screenshot sys testing