-
Notifications
You must be signed in to change notification settings - Fork 27
55 lines (45 loc) · 1.67 KB
/
test-component-starter.yml
File metadata and controls
55 lines (45 loc) · 1.67 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
name: Component Starter Smoke Test
on:
workflow_call:
# Make this a reusable workflow, no value needed
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
jobs:
component_test:
name: (${{ matrix.os }}.${{ matrix.node }})
strategy:
fail-fast: false
matrix:
node: ['20', '22']
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
runs-on: ${{ matrix.os }}
steps:
- name: 📥 Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: 🕸️ Get Core Dependencies
uses: stenciljs/.github/actions/get-core-dependencies@main
- name: 🟢 Use Node ${{ matrix.node }}
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: 📥 Download Build Archive
uses: stenciljs/.github/actions/download-archive@main
with:
name: stencil-cli
path: .
filename: stencil-cli-build.zip
- name: 🔃 Initialize the Project
run: node index.js component tmp-component-starter
shell: bash
- name: 📦 Install Component Starter Dependencies
run: npm install
working-directory: ./tmp-component-starter
shell: bash
- name: 🏗️ Build Starter Project
run: npm run build
working-directory: ./tmp-component-starter
shell: bash
- name: 🧪 Test Starter Project
run: npm run test -- --no-build # the project was just built, don't build it again
working-directory: ./tmp-component-starter
shell: bash