Skip to content

Merge pull request #54 from naveedkhan8067/hello-world-component-upgrade #32

Merge pull request #54 from naveedkhan8067/hello-world-component-upgrade

Merge pull request #54 from naveedkhan8067/hello-world-component-upgrade #32

name: "Build-And-Test-Component-Reuse-Case"
on:
workflow_dispatch:
push:
branches:
- main
paths:
- components/hello-world/**
- .github/workflows/Build-And-Test-Component-Reuse-Case.yml
# pull_request:
# branches:
# - main
# paths:
# - components/hello-world/**
# - .github/workflows/Build-And-Test-Component-Reuse-Case.yml
jobs:
hello-world-linux-reuse:
name: "Hello-World Linux Reuse"
runs-on: ubuntu-latest
steps:
- name: πŸ“š Checkout
uses: actions/[email protected]
- name: Initial Setup
uses: ./.github/templates/prebuild
with:
COMPONENT: hello-world
VARIANT_TYPE: LINUX
- name: Build, Test and Package
uses: ./.github/templates/build
with:
COMPONENT: hello-world
VARIANT_TYPE: linux
WORKING-DIR: ./components/
hello-world-mac-reuse:
name: "Hello-World Mac Reuse"
runs-on: macos-latest
steps:
- name: πŸ“š Checkout
uses: actions/[email protected]
- name: Initial Setup
uses: ./.github/templates/prebuild
with:
COMPONENT: hello-world
VARIANT_TYPE: MAC
- name: Build, Test and Package
uses: ./.github/templates/build
with:
COMPONENT: hello-world
VARIANT_TYPE: mac
WORKING-DIR: ./components/
hello-world-windows-reuse:
name: "Hello-World Windows Reuse"
runs-on: windows-latest
steps:
- name: πŸ“š Checkout
uses: actions/[email protected]
- name: Initial Setup
uses: ./.github/templates/prebuild
with:
COMPONENT: hello-world
VARIANT_TYPE: WINDOWS
- name: Build, Test and Package
uses: ./.github/templates/build
with:
COMPONENT: hello-world
VARIANT_TYPE: windows
WORKING-DIR: ./components/
security-scan-reuse:
needs:
- hello-world-linux-reuse
- hello-world-mac-reuse
- hello-world-windows-reuse
name: "Security Scan Reuse"
runs-on: ubuntu-latest
steps:
- name: πŸ“š Checkout
uses: actions/[email protected]
- name: Initial Setup
uses: ./.github/templates/prebuild
with:
COMPONENT: hello-world
VARIANT_TYPE: LINUX
- name: Run Audit
run: npm audit
working-directory: ./components/hello-world