blob: 19752be8c8007aeed1b04407e91018c1eb8de78a [file] [log] [blame]
name: validate
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Run weekly
schedule:
- cron: "0 0 * * 0"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
- name: Check for sources
run: |
filecount=`find lib -name '*.dart' | wc -l`
if [ $filecount -ne 0 ] || [ -d "bin" ]
then
echo 'Dart sources are not allowed in this package!'
exit 1
fi