-
Notifications
You must be signed in to change notification settings - Fork 15
49 lines (47 loc) · 1.63 KB
/
celest_cloud_hub.yaml
File metadata and controls
49 lines (47 loc) · 1.63 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
name: celest_cloud_hub
on:
pull_request:
paths:
- ".github/workflows/celest_cloud_hub.yaml"
- "services/celest_cloud_hub/**"
# Prevent duplicate runs due to Graphite
# https://graphite.dev/docs/troubleshooting#why-are-my-actions-running-twice
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}-${{ github.ref == 'refs/heads/main' && github.sha || ''}}
cancel-in-progress: true
jobs:
analyze_and_format:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Git Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
- name: Setup Flutter
uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 # 2.19.0
with:
cache: true
- name: Get Packages
working-directory: services/celest_cloud_hub
run: dart pub upgrade
- name: Analyze
working-directory: services/celest_cloud_hub
run: dart analyze
- name: Format
working-directory: services/celest_cloud_hub
run: dart format --set-exit-if-changed .
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Git Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
- name: Setup Flutter
uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 # 2.19.0
with:
cache: true
- name: Get Packages
working-directory: services/celest_cloud_hub
run: dart pub upgrade
- name: Test
working-directory: services/celest_cloud_hub
run: dart test --fail-fast -j1