-
Notifications
You must be signed in to change notification settings - Fork 32
46 lines (41 loc) · 1.12 KB
/
ci_builder.yaml
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
name: CI builder
on:
pull_request:
env:
WORK_DIR: packages/starknet_builder
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/[email protected]
with:
sdk: stable
- id: install
name: Install dependencies
run: dart pub get
working-directory: ${{ env.WORK_DIR }}
- name: Check formatting
run: dart format --output=none --set-exit-if-changed .
working-directory: ${{ env.WORK_DIR }}
- name: Analyze code
run: dart analyze --fatal-infos
if: always() && steps.install.outcome == 'success'
working-directory: ${{ env.WORK_DIR }}
test:
defaults:
run:
working-directory: ${{ env.WORK_DIR }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/[email protected]
with:
sdk: stable
- id: install
name: Install dependencies
run: dart pub get
- name: Run build_runner
run: dart run build_runner build --delete-conflicting-outputs
- name: Run tests
run: dart test