-
Notifications
You must be signed in to change notification settings - Fork 15
60 lines (57 loc) · 1.96 KB
/
celest_cli.yaml
File metadata and controls
60 lines (57 loc) · 1.96 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
54
55
56
57
58
59
60
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-14
# TODO: Need to fix tests on Windows
# - windows-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- name: Git Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
with:
submodules: recursive
# Needed for flutter-version-file: https://github.com/subosito/flutter-action?tab=readme-ov-file#use-version-from-pubspecyaml
- name: Install yq
if: runner.os == 'Windows'
shell: bash
run: |
curl -sL "https://github.com/mikefarah/yq/releases/download/v4.43.1/yq_windows_amd64.exe" -o yq.exe
echo "$PWD" >> "$GITHUB_PATH"
- name: Setup Flutter
uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # 2.16.0
with:
cache: true
# Locks version to repo constraint (for golden test alignment)
flutter-version-file: pubspec.yaml
- 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/legacy/fixtures_test.dart --fail-fast -j 1