-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.03 KB
/
child-workflow-1.yml
File metadata and controls
45 lines (38 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Child Workflow 1 - Tests
on:
workflow_call:
inputs:
artifact_id:
description: 'Unique identifier for artifacts'
required: true
type: string
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: |
echo "Installing dependencies..."
sleep 2
echo "Dependencies installed successfully"
- name: Run unit tests
run: |
echo "Running unit tests..."
sleep 3
echo "All tests passed!"
- name: Generate test report
run: |
echo "Generating test report..."
mkdir -p child1
echo ${{ inputs.artifact_id }} > child1/child1.txt
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact_id }}
path: child1/