-
Notifications
You must be signed in to change notification settings - Fork 15
53 lines (51 loc) · 1.82 KB
/
celest_cloud_hub.yaml
File metadata and controls
53 lines (51 loc) · 1.82 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
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: Setup Fly
uses: superfly/flyctl-actions/setup-flyctl@63da3ecc5e2793b98a3f2519b3d75d4f4c11cec2 # master
- 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
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}