Functionality updated #26
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 | ||
Check failure on line 81 in .github/workflows/Build-And-Test-Component-Reuse-Case.yml GitHub Actions / Build-And-Test-Component-Reuse-CaseInvalid workflow file
|
||
- hello-world-mac | ||
- hello-world-windows | ||
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 |