-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (43 loc) · 1.51 KB
/
main.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
49
50
51
52
53
54
55
56
name: Push/PR Checks
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
pr_check:
name: PR Check Build
runs-on: ubuntu-latest
steps:
- name: Checkout repo (self)
uses: actions/checkout@v4
- name: Install flutter
uses: flutter-actions/setup-flutter@v4
with:
version: '3.10.0'
- name: 'Install tools: melos and fvm'
run: dart pub global activate melos && dart pub global activate fvm
- name: Install top-level dependencies
run: dart pub get
- name: Run melos
run: melos bs && melos run get
- name: Verify formatting of clerk_auth
run: dart format --output=none --set-exit-if-changed .
working-directory: packages/clerk_auth
- name: Verify formatting of clerk_flutter
run: dart format --output=none --set-exit-if-changed .
working-directory: packages/clerk_flutter
- name: Analyze clerk_auth
run: dart analyze
working-directory: packages/clerk_auth
- name: Analyze clerk_flutter
run: flutter analyze
working-directory: packages/clerk_flutter
- name: Prepare test environment
env:
TEST_ENV_BASE64: ${{ secrets.TEST_ENV_BASE64 }}
run: |
echo $TEST_ENV_BASE64 | base64 --decode > packages/clerk_auth/.env.test
- name: Run tests in clerk_auth
run: dart test
working-directory: packages/clerk_auth