Dart #162
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: Dart | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: "0 0 * * 0" | |
permissions: read-all | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d | |
- uses: nanasess/setup-chromedriver@e66222fd7ec9c46b83cc837781ce6930b5d95f90 | |
- name: Install dependencies | |
run: dart pub get | |
- name: Validate formatting | |
run: dart format --output=none --set-exit-if-changed . | |
- name: Analyze source code | |
run: dart analyze | |
# Disabled; tracked via #75. | |
# - name: Run tests | |
# run: | | |
# export DISPLAY=:99 | |
# chromedriver --port=4444 --url-base=/wd/hub & | |
# sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & | |
# dart test | |
# env: | |
# CHROMEDRIVER_ARGS: '--no-sandbox --headless' |