Skip to content

fix: workflows

fix: workflows #2

Workflow file for this run

name: test
on:
pull_request:
permissions:
pull-requests: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- id: check-test-dependency
run: |
if grep -q 'test:' pubspec.yaml; then
echo "test_dependency=true" >> $GITHUB_ENV
else
echo "test_dependency=false" >> $GITHUB_ENV
fi
- if: env.test_dependency == 'true'
run: dart test