Skip to content

Functionality updated #26

Functionality updated

Functionality updated #26

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

View workflow run for this annotation

GitHub Actions / Build-And-Test-Component-Reuse-Case

Invalid workflow file

The workflow is not valid. .github/workflows/Build-And-Test-Component-Reuse-Case.yml (Line: 81, Col: 9): Job 'security-scan-reuse' depends on unknown job 'hello-world-linux'. .github/workflows/Build-And-Test-Component-Reuse-Case.yml (Line: 82, Col: 9): Job 'security-scan-reuse' depends on unknown job 'hello-world-mac'.
- 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