Skip to content

Commit 5e19446

Browse files
committed
update ci tests
1 parent 2b778bc commit 5e19446

9 files changed

+8
-72
lines changed

.github/workflows/test-changed-fcm-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
cp config/ci.config.json config/project.json
2929
yarn
3030
- name: build
31-
run: yarn build:changed fcm-integration --buildAppExp
31+
run: yarn build:changed fcm-integration
3232
- name: Run tests if FCM or its dependencies has changed
3333
run: xvfb-run yarn test:changed fcm-integration

.github/workflows/test-changed-firestore-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
cp config/ci.config.json config/project.json
2929
yarn
3030
- name: build
31-
run: yarn build:changed firestore-integration --buildAppExp --buildAppCompat
31+
run: yarn build:changed firestore-integration
3232
- name: Run tests if firestore or its dependencies has changed
3333
run: yarn test:changed firestore-integration

.github/workflows/test-changed-firestore.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
cp config/ci.config.json config/project.json
2929
yarn
3030
- name: build
31-
run: yarn build:changed firestore --buildAppExp --buildAppCompat
31+
run: yarn build:changed firestore
3232
- name: Run tests if firestore or its dependencies has changed
3333
run: yarn test:changed firestore

.github/workflows/test-changed-misc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
cp config/ci.config.json config/project.json
2929
yarn
3030
- name: build
31-
run: yarn build:changed misc --buildAppExp
31+
run: yarn build:changed misc
3232
- name: Run tests
3333
run: yarn test:changed misc

.github/workflows/test-changed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
cp config/ci.config.json config/project.json
2929
yarn
3030
- name: build
31-
run: yarn build:changed core --buildAppExp
31+
run: yarn build:changed core
3232
- name: Run tests on changed packages
3333
run: xvfb-run yarn test:changed core

.github/workflows/test-firebase-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
cp config/ci.config.json config/project.json
2929
yarn
3030
- name: build
31-
run: yarn build:changed firebase-integration --buildAppExp
31+
run: yarn build:changed firebase-integration
3232
- name: Run tests on changed packages
3333
run: yarn test:changed firebase-integration

scripts/ci-test/build_changed.ts

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,6 @@ import { testConfig, TestConfig } from './testConfig';
2424
const root = resolve(__dirname, '../..');
2525

2626
const argv = yargs.options({
27-
// TODO: remove once modular SDKs become official
28-
buildAppExp: {
29-
type: 'boolean',
30-
desc: 'whether or not build @firebase/app-exp first. It is a hack required to build Firestore'
31-
},
32-
buildAppCompat: {
33-
type: 'boolean',
34-
desc: 'whether or not build @firebase/app-compat first. It is a hack required to build Firestore'
35-
},
3627
buildAll: {
3728
type: 'boolean',
3829
desc: 'if true, build all packages. Used in Test Auth workflow because Auth tests depends on the firebase package'
@@ -63,14 +54,12 @@ const config = testConfig[inputTestConfigName]!;
6354
buildForTests(config, argv);
6455

6556
interface Options {
66-
buildAppExp?: boolean;
67-
buildAppCompat?: boolean;
6857
buildAll?: boolean;
6958
}
7059

7160
async function buildForTests(
7261
config: TestConfig,
73-
{ buildAppExp = false, buildAppCompat = false, buildAll = false }: Options
62+
{ buildAll = false }: Options
7463
) {
7564
try {
7665
const testTasks = filterTasks(await getTestTasks(), config);
@@ -87,58 +76,6 @@ async function buildForTests(
8776
return;
8877
}
8978

90-
// hack to build Firestore which depends on @firebase/app-exp (because of firestore exp),
91-
// but doesn't list it as a dependency in its package.json
92-
// TODO: remove once modular SDKs become official
93-
if (buildAppExp) {
94-
await spawn(
95-
'npx',
96-
[
97-
'lerna',
98-
'run',
99-
'--scope',
100-
'@firebase/app-exp',
101-
'--include-dependencies',
102-
'build'
103-
],
104-
{ stdio: 'inherit', cwd: root }
105-
);
106-
}
107-
// hack to build Firestore which depends on @firebase/app-compat (because of firestore exp),
108-
// but doesn't list it as a dependency in its package.json
109-
// TODO: remove once modular SDKs become official
110-
if (buildAppCompat) {
111-
await spawn(
112-
'npx',
113-
[
114-
'lerna',
115-
'run',
116-
'--scope',
117-
'@firebase/app-compat',
118-
'--include-dependencies',
119-
'build'
120-
],
121-
{ stdio: 'inherit', cwd: root }
122-
);
123-
}
124-
// hack to build Storage which depends on @firebase/auth-exp (because of integration test),
125-
// but doesn't list it as a dependency in its package.json
126-
// TODO: remove once modular SDKs become official
127-
if (testTasks.some(task => task.pkgName.includes('storage'))) {
128-
await spawn(
129-
'npx',
130-
[
131-
'lerna',
132-
'run',
133-
'--scope',
134-
'@firebase/auth-exp',
135-
'--include-dependencies',
136-
'build'
137-
],
138-
{ stdio: 'inherit', cwd: root }
139-
);
140-
}
141-
14279
const lernaCmd = ['lerna', 'run'];
14380
console.log(chalk`{blue Running build in:}`);
14481
for (const task of testTasks) {

scripts/ci-test/tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export async function getTestTasks(): Promise<TestTask[]> {
122122
}
123123
}
124124
// Check for changed files inside package dirs.
125-
const match = filename.match('^(packages(-exp)?/[a-zA-Z0-9-]+)/.*');
125+
const match = filename.match('^(packages/[a-zA-Z0-9-]+)/.*');
126126
if (match && match[1]) {
127127
const pkgJsonPath = resolve(root, match[1], 'package.json');
128128

scripts/ci-test/testConfig.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export const testConfig: {
4141
'@firebase/rules-unit-testing',
4242
'@firebase/auth',
4343
'firebase',
44-
'firebase-exp'
4544
]
4645
},
4746
'firestore': {

0 commit comments

Comments
 (0)