forked from comigor/artemis
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.33 KB
/
pull_request.yaml
File metadata and controls
52 lines (50 loc) · 1.33 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
on: pull_request
name: CI
jobs:
check-version-and-changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: comigor/actions/check-version-and-changelog@master
with:
repo_token: ${{ github.token }}
base_ref: ${{ github.base_ref }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1.3
with:
sdk: stable
- id: install
name: Install dependencies
run: dart pub get
- name: Check formatting
if: always() && steps.install.outcome == 'success'
run: dart format --set-exit-if-changed .
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1.3
with:
sdk: stable
- id: install
name: Install dependencies
run: dart pub get
- name: Test
if: always() && steps.install.outcome == 'success'
run: dart test
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1.3
with:
sdk: stable
- id: install
name: Install dependencies
run: dart pub get
- name: Analyze
if: always() && steps.install.outcome == 'success'
run: dart analyze