Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,41 @@ on:

jobs:
build_cli:
name: Build CLI
name: 🏗️ Build CLI
runs-on: 'ubuntu-latest'
steps:
- name: Checkout Code
- name: 📥 Checkout Code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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
- name: 🕸️ Get Core Dependencies
uses: stenciljs/.github/actions/get-core-dependencies@main

- name: CLI Build
- name: 🟩 Setup Node 20.15.1
uses: actions/setup-node@v4
with:
node-version: 20.15.1
cache: 'npm'

- name: 📦 Clean install on Linux (resolve native optional deps)
run: |
rm -rf node_modules package-lock.json
npm install --no-audit --no-fund
shell: bash

- name: 🏗️ CLI Build
run: npm run build
shell: bash

- name: Unit Tests
- name: 🧪 Unit Tests
run: npm test
shell: bash

- name: Upload Build Artifacts
- name: 📤 Upload Build Artifacts
uses: stenciljs/.github/actions/upload-archive@main
with:
paths: index.js
Loading
Loading