-
Notifications
You must be signed in to change notification settings - Fork 194
48 lines (39 loc) · 1.29 KB
/
tests.yaml
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
name: Tests
on:
push:
jobs:
build:
runs-on: macos-latest
steps:
- name: Configure git-lfs to ignore most files
run: |
git config --global lfs.fetchinclude 'test/**'
- uses: actions/checkout@v3
with:
lfs: true
- name: Checkout and install Flutter
run: git clone https://github.com/flutter/flutter.git
- name: Add the Flutter path
run: echo "$GITHUB_WORKSPACE/flutter/bin" >> $GITHUB_PATH
- name: Set Flutter root
run: echo "FLUTTER_ROOT=$GITHUB_WORKSPACE/flutter" >> $GITHUB_ENV
- name: Setup flutter
run: |
flutter channel stable
flutter doctor
- name: Build rive_common shared library
run: |
flutter pub get
VERSION=$(dart pub deps -s list | grep rive_common | sed 's/[^0-9.]*//g')
echo "Rive Common Version: $VERSION"
pushd ~/.pub-cache/hosted/pub.dev/rive_common-$VERSION
./update_dependencies.sh force
pushd shared_lib
./build_shared.sh
RIVE_TEXT_DYLIB=$PWD/build/bin/debug/librive_text.dylib
popd
popd
mkdir -p shared_lib/build/bin/debug/
cp $RIVE_TEXT_DYLIB shared_lib/build/bin/debug/
- name: Run tests
run: flutter test