-
Notifications
You must be signed in to change notification settings - Fork 0
120 lines (110 loc) · 2.95 KB
/
build.yaml
File metadata and controls
120 lines (110 loc) · 2.95 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: Build, Test & Lint
on:
push:
pull_request:
schedule:
- cron: "0 4,11 * * *"
jobs:
install-tape:
name: Install tape dependencies
runs-on: ubuntu-latest
container:
image: google/dart:2.7
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: |
cd tape
pub get
- name: Persist current state
uses: actions/upload-artifact@v1
with:
name: tape-source
path: tape
install-tapegen:
name: Install tapegen dependencies
needs: install-tape
runs-on: ubuntu-latest
container:
image: google/dart:2.7
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: |
cd tapegen
pub get
- name: Persist current state
uses: actions/upload-artifact@v1
with:
name: tapegen-source
path: tapegen
test-tape:
name: Run tape tests
needs: install-tape
runs-on: ubuntu-latest
container:
image: google/dart:2.7
steps:
- name: Checkout source
uses: actions/download-artifact@v2
with:
name: tape-source
- name: Install dependencies
run: pub get
- name: Run tests
run: |
pub run test test/blocks.dart
pub run test test/adapters.dart
# tape-coverage:
# name: Tape coverage
# needs: install-tape
# runs-on: ubuntu-latest
# container:
# image: google/dart:2.7
# steps:
# - name: Checkout tape source
# uses: actions/download-artifact@v2
# with:
# name: tape-source
# - name: Install dependencies
# run: pub get
# - name: Collect coverage
# run: pub run test_coverage
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# lint:
# name: Lint
# needs: install
# runs-on: ubuntu-latest
# container:
# image: google/dart:2.7
# steps:
# - name: Checkout source
# uses: actions/download-artifact@v2
# with:
# name: source
# - name: Install dependencies
# run: pub get
# - name: Run linter
# run: dartanalyzer . > analyze_report.txt
# continue-on-error: true
# - name: Install ruby
# uses: actions/setup-ruby@v1
# if: github.event_name == 'pull_request'
# with:
# ruby-version: "2.6"
# - name: Install ruby gems
# run: |
# gem install bundler
# bundle install --without documentation
# if: github.event_name == 'pull_request'
# - name: Run danger on generated report
# uses: MeilCli/danger-action@v1
# if: github.event_name == 'pull_request'
# with:
# danger_file: Dangerfile
# danger_id: "danger-pr"
# env:
# DANGER_GITHUB_API_TOKEN: ${{ secrets.BOT_TOKEN }}