nightly #674
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: nightly | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
# Every night at 03:00 | |
- cron: '0 3 * * *' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: passsy/flutterw:base-0.4.1 | |
steps: | |
- uses: actions/[email protected] | |
- name: Preload Flutter | |
run: | | |
mkdir -p /flutter | |
git clone https://github.com/flutter/flutter.git -b stable /flutter | |
export PATH="$PATH:/flutter/bin" | |
echo "/flutter/bin" >> $GITHUB_PATH | |
cat /flutter/.git/config | |
# TODO fetch this in flutterw script | |
git -C /flutter fetch origin | |
git -C /flutter fetch --all | |
flutter precache --linux --web | |
git config --global user.email "[email protected]" | |
git config --global user.name "Dash" | |
- name: Get dependencies | |
run: | | |
cd test | |
dart pub get | |
- name: Run tests | |
run: | | |
cd test | |
dart run test -j 1 |