updated makefile.yml and check-files.yml #9
Workflow file for this run
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: 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." |