Skip to content

Commit

Permalink
test13
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc committed May 27, 2024
1 parent e34db3e commit d724c6d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/yaml_file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
id: yaml_check
run: |
missing_yaml_files=0
missing_files_list=""
while IFS= read -r design_file; do
base_name=$(basename "$design_file" | sed -E 's/\.(gds|oas)$//I')
yaml_file=$(dirname "$design_file")/"$base_name".yaml
Expand All @@ -49,11 +50,40 @@ jobs:
else
echo "Missing YAML file for $design_file"
missing_yaml_files=$((missing_yaml_files + 1))
missing_files_list="$missing_files_list\n- $design_file"
fi
done < design_files.txt
echo "Missing YAML files count: $missing_yaml_files"
echo "missing_yaml_files=$missing_yaml_files" >> $GITHUB_ENV
echo "missing_files_list=$missing_files_list" >> $GITHUB_ENV
- name: Create comment if any YAML files are missing
if: env.missing_yaml_files != '0'
uses: actions/github-script@v6
with:
script: |
const missingFilesList = process.env.missing_files_list;
const commentBody = `
### Missing Corresponding YAML Files

The following design files (.gds or .oas) are missing their corresponding .yaml files:

${missingFilesList}

The YAML file is a test sequence format. It's important to think about testing during the design process (Design for Test). Including a test sequence helps ensure that the design can be effectively validated and verified. Please make sure to include the necessary .yaml files to facilitate this.

For more information, refer to the [SiEPIC Testcreator](https://github.com/SiEPIC/SiEPIC_testcreator) repository.

Thank you!
`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: commentBody
});
- name: Fail if any YAML files are missing
if: env.missing_yaml_files != '0'
Expand Down
Empty file added submissions/test13.gds
Empty file.

0 comments on commit d724c6d

Please sign in to comment.