-
Notifications
You must be signed in to change notification settings - Fork 15
51 lines (48 loc) · 1.61 KB
/
celest_cli.yaml
File metadata and controls
51 lines (48 loc) · 1.61 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
name: celest_cli
on:
pull_request:
paths:
- ".github/workflows/celest_cli.yaml"
- "apps/cli/**"
- "packages/**"
- "services/**"
# 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
env:
CELEST_LOCAL_PATH: ${{ github.workspace }}
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 30 # Windows is really slow
steps:
- name: Git Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
- name: Setup Flutter
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # 2.18.0
with:
cache: true
# Because many golden tests encode the precise Dart/Flutter SDKs used to generate
# them, these values must be consistently used when running tests locally and in CI.
flutter-version: 3.29.2
- name: Setup Libsecret
if: runner.os == 'Linux'
run: tool/setup-ci.sh
- name: Get Packages
working-directory: apps/cli
run: dart pub upgrade
- name: Test
working-directory: apps/cli
run: dart test -x e2e --fail-fast -j 1
- name: Test (Fixtures)
working-directory: apps/cli
run: dart test fixtures/fixtures_test.dart --fail-fast -j 1