11name : all_packages
22on :
33 workflow_dispatch :
4- pull_request_target :
4+ pull_request :
55 types : [opened, synchronize, reopened]
66 push :
77 branches :
1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v2
15- with :
16- ref : ${{ github.event.pull_request.head.sha || github.ref }}
1715 - uses : subosito/flutter-action@v2
1816 with :
1917 channel : ' stable'
@@ -29,147 +27,9 @@ jobs:
2927 timeout-minutes : 10
3028 steps :
3129 - uses : actions/checkout@v2
32- with :
33- ref : ${{ github.event.pull_request.head.sha || github.ref }}
3430 - uses : subosito/flutter-action@v2
3531 with :
3632 channel : ' stable'
3733 - uses : bluefireteam/melos-action@v2
3834 - name : " Check formatting"
3935 run : melos run format-check
40-
41- test_linux :
42- runs-on : ubuntu-latest
43- timeout-minutes : 25
44- environment : CI Environment
45- env :
46- FIREBASE_TOKEN : ${{ secrets.FIREBASE_TOKEN }}
47- FIREBASE_SERVICE_ACCOUNT : ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
48- steps :
49- - name : Get User Permission
50- id : checkAccess
51- uses : actions-cool/check-user-permission@v2
52- with :
53- require : write
54- username : ${{ github.triggering_actor }}
55- env :
56- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57- - name : Check User Permission
58- if : steps.checkAccess.outputs.require-result == 'false'
59- run : |
60- echo "${{ github.triggering_actor }} does not have permissions on this repo."
61- echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
62- echo "Job originally triggered by ${{ github.actor }}"
63- exit 1
64- - uses : actions/checkout@v2
65- with :
66- ref : ${{ github.event.pull_request.head.sha || github.ref }}
67- - uses : subosito/flutter-action@v2
68- with :
69- channel : ' stable'
70- - uses : bluefireteam/melos-action@v2
71- with :
72- melos-version : ' 3.0.0'
73- - name : " Install Firebase CLI"
74- run : |
75- sudo npm i -g firebase-tools
76- - name : Install FlutterFire
77- run : |
78- dart pub global activate --source="path" . --executable="flutterfire" --overwrite
79- - name : " Run Tests"
80- run : melos run test --no-select
81- env :
82- FIREBASE_TOKEN : ${{ env.FIREBASE_TOKEN }}
83-
84- test_macos :
85- runs-on : macos-latest
86- timeout-minutes : 25
87- environment : CI Environment
88- env :
89- FIREBASE_TOKEN : ${{ secrets.FIREBASE_TOKEN }}
90- FIREBASE_SERVICE_ACCOUNT : ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
91- steps :
92- - name : Get User Permission
93- id : checkAccess
94- uses : actions-cool/check-user-permission@v2
95- with :
96- require : write
97- username : ${{ github.triggering_actor }}
98- env :
99- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
100- - name : Check User Permission
101- if : steps.checkAccess.outputs.require-result == 'false'
102- run : |
103- echo "${{ github.triggering_actor }} does not have permissions on this repo."
104- echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
105- echo "Job originally triggered by ${{ github.actor }}"
106- exit 1
107- - uses : actions/checkout@v2
108- with :
109- ref : ${{ github.event.pull_request.head.sha || github.ref }}
110- - uses : subosito/flutter-action@v2
111- with :
112- channel : ' stable'
113- - uses : bluefireteam/melos-action@v2
114- with :
115- melos-version : ' 3.0.0'
116- - name : " Install Firebase CLI"
117- run : |
118- sudo npm i -g firebase-tools
119- - name : Select Xcode version
120- run : |
121- sudo xcode-select -switch /Applications/Xcode_16.2.app/Contents/Developer
122- - name : Install FlutterFire
123- run : |
124- dart pub global activate --source="path" . --executable="flutterfire" --overwrite
125- - name : " Run Tests"
126- run : melos run test --no-select
127- env :
128- FIREBASE_TOKEN : ${{ env.FIREBASE_TOKEN }}
129-
130- test_windows :
131- runs-on : windows-latest
132- timeout-minutes : 25
133- environment : CI Environment
134- env :
135- FIREBASE_TOKEN : ${{ secrets.FIREBASE_TOKEN }}
136- FIREBASE_SERVICE_ACCOUNT : ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
137- steps :
138- - name : Get User Permission
139- id : checkAccess
140- uses : actions-cool/check-user-permission@v2
141- with :
142- require : write
143- username : ${{ github.triggering_actor }}
144- env :
145- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
146- - name : Check User Permission
147- if : steps.checkAccess.outputs.require-result == 'false'
148- run : |
149- echo "${{ github.triggering_actor }} does not have permissions on this repo."
150- echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
151- echo "Job originally triggered by ${{ github.actor }}"
152- exit 1
153- - uses : actions/checkout@v2
154- with :
155- ref : ${{ github.event.pull_request.head.sha || github.ref }}
156- - uses : subosito/flutter-action@v2
157- with :
158- channel : ' stable'
159- - uses : bluefireteam/melos-action@v2
160- with :
161- melos-version : ' 3.0.0'
162- - uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
163- name : Install Node.js 18
164- with :
165- node-version : " 18"
166- - name : " Install Firebase CLI"
167- run : |
168- npm i -g firebase-tools
169- - name : Install FlutterFire
170- run : |
171- dart pub global activate --source="path" . --executable="flutterfire" --overwrite
172- - name : " Run Tests"
173- run : cmd /K melos run test --no-select
174- env :
175- FIREBASE_TOKEN : ${{ env.FIREBASE_TOKEN }}
0 commit comments