Skip to content

Commit 8401e2a

Browse files
Merge commit from fork
1 parent 2cfefc3 commit 8401e2a

File tree

2 files changed

+146
-141
lines changed

2 files changed

+146
-141
lines changed

.github/workflows/test.yaml

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
name: all_packages
2+
on:
3+
workflow_dispatch:
4+
pull_request_target:
5+
types: [opened, synchronize, reopened]
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
test_linux:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 25
14+
environment: CI Environment
15+
env:
16+
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
17+
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
18+
steps:
19+
- name: Get User Permission
20+
id: checkAccess
21+
uses: actions-cool/check-user-permission@v2
22+
with:
23+
require: write
24+
username: ${{ github.triggering_actor }}
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
- name: Check User Permission
28+
if: steps.checkAccess.outputs.require-result == 'false'
29+
run: |
30+
echo "${{ github.triggering_actor }} does not have permissions on this repo."
31+
echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
32+
echo "Job originally triggered by ${{ github.actor }}"
33+
exit 1
34+
- uses: actions/checkout@v2
35+
with:
36+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
37+
- uses: subosito/flutter-action@v2
38+
with:
39+
channel: 'stable'
40+
- uses: bluefireteam/melos-action@v2
41+
with:
42+
melos-version: '3.0.0'
43+
- name: "Install Firebase CLI"
44+
run: |
45+
sudo npm i -g firebase-tools
46+
- name: Install FlutterFire
47+
run: |
48+
dart pub global activate --source="path" . --executable="flutterfire" --overwrite
49+
- name: "Run Tests"
50+
run: melos run test --no-select
51+
env:
52+
FIREBASE_TOKEN: ${{ env.FIREBASE_TOKEN }}
53+
54+
test_macos:
55+
runs-on: macos-latest
56+
timeout-minutes: 25
57+
environment: CI Environment
58+
env:
59+
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
60+
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
61+
steps:
62+
- name: Get User Permission
63+
id: checkAccess
64+
uses: actions-cool/check-user-permission@v2
65+
with:
66+
require: write
67+
username: ${{ github.triggering_actor }}
68+
env:
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
- name: Check User Permission
71+
if: steps.checkAccess.outputs.require-result == 'false'
72+
run: |
73+
echo "${{ github.triggering_actor }} does not have permissions on this repo."
74+
echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
75+
echo "Job originally triggered by ${{ github.actor }}"
76+
exit 1
77+
- uses: actions/checkout@v2
78+
with:
79+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
80+
- uses: subosito/flutter-action@v2
81+
with:
82+
channel: 'stable'
83+
- uses: bluefireteam/melos-action@v2
84+
with:
85+
melos-version: '3.0.0'
86+
- name: "Install Firebase CLI"
87+
run: |
88+
sudo npm i -g firebase-tools
89+
- name: Select Xcode version
90+
run: |
91+
sudo xcode-select -switch /Applications/Xcode_16.2.app/Contents/Developer
92+
- name: Install FlutterFire
93+
run: |
94+
dart pub global activate --source="path" . --executable="flutterfire" --overwrite
95+
- name: "Run Tests"
96+
run: melos run test --no-select
97+
env:
98+
FIREBASE_TOKEN: ${{ env.FIREBASE_TOKEN }}
99+
100+
test_windows:
101+
runs-on: windows-latest
102+
timeout-minutes: 25
103+
environment: CI Environment
104+
env:
105+
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
106+
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
107+
steps:
108+
- name: Get User Permission
109+
id: checkAccess
110+
uses: actions-cool/check-user-permission@v2
111+
with:
112+
require: write
113+
username: ${{ github.triggering_actor }}
114+
env:
115+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116+
- name: Check User Permission
117+
if: steps.checkAccess.outputs.require-result == 'false'
118+
run: |
119+
echo "${{ github.triggering_actor }} does not have permissions on this repo."
120+
echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
121+
echo "Job originally triggered by ${{ github.actor }}"
122+
exit 1
123+
- uses: actions/checkout@v2
124+
with:
125+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
126+
- uses: subosito/flutter-action@v2
127+
with:
128+
channel: 'stable'
129+
- uses: bluefireteam/melos-action@v2
130+
with:
131+
melos-version: '3.0.0'
132+
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
133+
name: Install Node.js 18
134+
with:
135+
node-version: "18"
136+
- name: "Install Firebase CLI"
137+
run: |
138+
npm i -g firebase-tools
139+
- name: Install FlutterFire
140+
run: |
141+
dart pub global activate --source="path" . --executable="flutterfire" --overwrite
142+
- name: "Run Tests"
143+
run: cmd /K melos run test --no-select
144+
env:
145+
FIREBASE_TOKEN: ${{ env.FIREBASE_TOKEN }}

.github/workflows/validate.yaml

Lines changed: 1 addition & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: all_packages
22
on:
33
workflow_dispatch:
4-
pull_request_target:
4+
pull_request:
55
types: [opened, synchronize, reopened]
66
push:
77
branches:
@@ -12,8 +12,6 @@ jobs:
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

Comments
 (0)