-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (41 loc) · 1.41 KB
/
Copy pathtest.yml
File metadata and controls
53 lines (41 loc) · 1.41 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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# layer_canvas compiles Blend2D from C++ source via a native build
# hook using package:native_toolchain_c, which on Linux only looks
# for `clang` (not gcc) to build native assets. ubuntu-latest does
# not guarantee clang is preinstalled, so install it explicitly or
# `flutter test` fails before running any tests.
- name: Install native build toolchain
run: sudo apt-get update -qq && sudo apt-get install -y -qq clang cmake
- uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- name: Install package dependencies
run: flutter pub get
- name: Analyze package
run: flutter analyze
- name: Run package tests
run: flutter test
- name: Install example dependencies
run: flutter pub get
working-directory: example
- name: Analyze example
run: flutter analyze
working-directory: example
- name: Run example tests
run: flutter test
working-directory: example