-
Notifications
You must be signed in to change notification settings - Fork 38
84 lines (65 loc) · 1.99 KB
/
test.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
74
75
76
77
78
79
80
81
82
83
84
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
tests_mix:
runs-on: ubuntu-latest
steps:
- name: Checkout mix repo
uses: actions/checkout@v2
with:
path: main
- name: Checkout remix_ui repo
uses: actions/checkout@v2
with:
repository: conceptadev/remix_ui
path: remix
ref: test-branch
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: flutter --version
- run: cd main && flutter pub get
# - uses: axel-op/dart-package-analyzer@v3
# with:
# githubToken: ${{ secrets.GITHUB_TOKEN }}
- run: cd main && flutter test
- name: Add most recent mix version to remix_ui
run: |
cd remix
dart pub remove mix
dart pub add 'mix:{"git":{"url":"https://github.com/conceptadev/mix","ref":"main"}}'
- name: Verify if there are any undefined symbols
id: undefined_symbols
run: |
cd remix
if flutter analyze | grep -q 'undefined'; then
echo "A file contains undefined symbols. Please add a deprecated annotation before you remove it."
exit 1
fi
- name: Add Label to Issue
if: ${{ failure() && steps.undefined_symbols.conclusion == 'failure' }}
uses: actions/github-script@v7
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['New Deprecation']
})
# remix_build:
# runs-on: ubuntu-latest
# needs: tests_mix
# steps:
# - uses: actions/checkout@v4
# with:
# repository: 'conceptadev/remix_ui'
# - uses: subosito/flutter-action@v2
# with:
# channel: "stable"
# # - run: flutter --version
# # - run: flutter pub get