Dart CI #151
This file contains hidden or 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 CI | |
| on: | |
| schedule: | |
| - cron: "0 0 * * 0" # runs on every Sunday | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| PUB_ENVIRONMENT: bot.github | |
| permissions: read-all | |
| jobs: | |
| weekly-tests: | |
| # These tests are run as a sanity-check, usually involving external data or systems. | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres | |
| env: | |
| POSTGRES_PASSWORD: postgres | |
| # Set health checks to wait until postgres has started | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| steps: | |
| - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c | |
| - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c | |
| - name: Install dependencies | |
| run: dart pub get | |
| working-directory: app | |
| - name: Run test | |
| run: dart test -P sanity -t sanity | |
| working-directory: app | |
| env: | |
| PUB_POSTGRES_URL: postgresql://postgres:postgres@localhost:5432/postgres?sslmode=disable |