Skip to content

Commit

Permalink
Check asset directories are valid for windows (microsoft#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickromano authored Jun 8, 2020
1 parent f3be64a commit c49ce18
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,29 @@ name: Pull request validation
on: pull_request

jobs:
valid-asset-names:
name: Validate Asset Names
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Check asset directories are valid for Windows
run: |
ls assets | python3 -c """
import sys
assets_dir = sys.stdin.read().strip().split('\n')
invalid_asset_dirs = []
for dir in assets_dir:
if dir.endswith(' '):
invalid_asset_dirs.append(dir)
if invalid_asset_dirs:
print('Invalid asset directories, remove the trailing space')
print(invalid_asset_dirs)
exit(1)
"""
build-ios:
name: Build iOS library
runs-on: ubuntu-latest
Expand Down

0 comments on commit c49ce18

Please sign in to comment.