Skip to content

updated makefile.yml and check-files.yml #9

updated makefile.yml and check-files.yml

updated makefile.yml and check-files.yml #9

Workflow file for this run

name: Check required files
on:
pull_request:
branches: [ "main" ]
fork:
branches: [ "main" ]
push:
branches: [ "main" ]
jobs:
build:
runs-on: [ubuntu-22.04, ubuntu-20.04, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Check for required files
run: |
filesToCheck=(
"Makefile"
"node.policy.json"
"deployment.policy.json"
"serviceTest.sh"
"service.json"
"pattern.json"
)
for file in "${filesToCheck[@]}"; do
if [ ! -f "$file" ]; then
echo "Error: $file not found!"
exit 1
fi
done
echo "All required files are present."