Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Update CI bits #26

Merged
merged 2 commits into from
Apr 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
name: Dart

on:
# Run on PRs and pushes to the default branch.
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github
DISPLAY: ':99'

jobs:
test:
runs-on: ubuntu-latest

env:
DISPLAY: ':99'

strategy:
matrix:
sdk: [2.12.0, dev]
steps:
- uses: actions/checkout@v2
- uses: cedx/setup-dart@v2
- uses: dart-lang/setup-dart@v1.0
with:
release-channel: stable
version: latest

- name: Print Dart SDK version
run: dart --version
sdk: ${{ matrix.sdk }}

- name: Install dependencies
run: dart pub get
- run: dart pub get
id: install

- name: Analyze project source
run: dart analyze
- run: dart analyze --fatal-infos

- name: Run Xvfb
run: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &

- name: Run tests
run: dart test
- run: dart test