nightly #662
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/checkout@v2.4.0 | |
- 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 "dash@flutter.io" | |
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 |