-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (63 loc) · 1.89 KB
/
test_suite.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
# 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 Suite
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
pre_job:
runs-on: self-hosted
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
paths_filter: |
rust:
paths: 'rust/**'
paths_ignore: '["README.md", "TODO.md", "doc/**"]'
rust_test:
needs: pre_job
# Do not run if no files in rust/ have been changed since last job run
if: needs.pre_job.outputs.should_skip != 'true' || !fromJSON(needs.pre_job.outputs.paths_result).rust.should_skip
runs-on: self-hosted
defaults:
run:
working-directory: ./rust
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build
- name: Run tests
run: cargo test
build_flutter:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.5'
channel: 'stable'
- run: flutter --version
- name: Install dependencies
run: flutter pub get
- name: Use default personal infos
run: ln -svr lib/personal_info{_template,}.dart
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
continue-on-error: true
- name: Analyze project source
run: flutter analyze
continue-on-error: true
- name: Run tests on emulators
run: just test