-
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 1.27 KB
/
dart.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Dart || Tests | Formatting | Analyzer
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Dart SDK Step 1
run: sudo apt-get update
- name: Setup Dart SDK Step 2
run: sudo apt-get install apt-transport-https
- name: Setup Dart SDK Step 3
run: sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
- name: Setup Dart SDK Step 4
run: sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
- name: Setup Dart SDK Step 5
run: sudo apt-get update
- name: Setup Dart SDK Step 6
run: sudo apt-get -y install dart
- uses: actions/checkout@v1
- name: Install dependencies
run: PATH="$PATH:/usr/lib/dart/bin" pub get
- name: Run Tests
run: PATH="$PATH:/usr/lib/dart/bin" pub run test
- name: Dart Formatter
run: PATH="$PATH:/usr/lib/dart/bin" dartfmt -n --set-exit-if-changed .
if: always()
- name: Dart Analyzer
run: PATH="$PATH:/usr/lib/dart/bin" dartanalyzer --fatal-infos --fatal-warnings .
if: always()