Merge pull request #54 from naveedkhan8067/hello-world-component-upgrade #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |