Skip to content

Optimize CI tests #3664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Aug 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/test-changed-auth.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test Auth

on: pull_request

jobs:
test:
name: If Changed
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so run-changed script can diff properly.
fetch-depth: 0
- name: Set up Node (10)
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: install Chrome stable
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Test setup and yarn install
run: |
cp config/ci.config.json config/project.json
yarn
- name: build
run: yarn build
- name: Run tests on changed packages
run: xvfb-run yarn test:changed auth
31 changes: 31 additions & 0 deletions .github/workflows/test-changed-fcm-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test FCM integration

on: pull_request

jobs:
test:
name: If Changed
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so run-changed script can diff properly.
fetch-depth: 0
- name: Set up Node (10)
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: install Chrome stable
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Test setup and yarn install
run: |
cp config/ci.config.json config/project.json
yarn
- name: build
run: yarn build:changed fcm-integration --buildAppExp
- name: Run tests if FCM or its dependenceies has changed
run: xvfb-run yarn test:changed fcm-integration
31 changes: 31 additions & 0 deletions .github/workflows/test-changed-firestore-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test Firestore Integration

on: pull_request

jobs:
test:
name: If Changed
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so run-changed script can diff properly.
fetch-depth: 0
- name: Set up Node (10)
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: install Chrome stable
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Test setup and yarn install
run: |
cp config/ci.config.json config/project.json
yarn
- name: build
run: yarn build:changed firestore-integration --buildAppExp
- name: Run tests if firestore or its dependenceies has changed
run: yarn test:changed firestore-integration
31 changes: 31 additions & 0 deletions .github/workflows/test-changed-firestore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test Firestore

on: pull_request

jobs:
test:
name: If Changed
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so run-changed script can diff properly.
fetch-depth: 0
- name: Set up Node (10)
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: install Chrome stable
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Test setup and yarn install
run: |
cp config/ci.config.json config/project.json
yarn
- name: build
run: yarn build:changed firestore --buildAppExp
- name: Run tests if firestore or its dependenceies has changed
run: yarn test:changed firestore
31 changes: 31 additions & 0 deletions .github/workflows/test-changed-misc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test rxFire, @firebase/testing and @firebase/rules-unit-testing

on: pull_request

jobs:
test:
name: If Changed
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so run-changed script can diff properly.
fetch-depth: 0
- name: Set up Node (10)
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: install Chrome stable
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Test setup and yarn install
run: |
cp config/ci.config.json config/project.json
yarn
- name: build
run: yarn build:changed misc --buildAppExp
- name: Run tests
run: yarn test:changed misc
6 changes: 3 additions & 3 deletions .github/workflows/test-changed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: |
cp config/ci.config.json config/project.json
yarn
- name: yarn build
run: yarn build
- name: build
run: yarn build:changed core
- name: Run tests on changed packages
run: xvfb-run yarn test:changed
run: xvfb-run yarn test:changed core
31 changes: 31 additions & 0 deletions .github/workflows/test-firebase-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test Firebase Namespace

on: pull_request

jobs:
test:
name: Test Firebase Namespace
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so run-changed script can diff properly.
fetch-depth: 0
- name: Set up Node (10)
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: install Chrome stable
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Test setup and yarn install
run: |
cp config/ci.config.json config/project.json
yarn
- name: build
run: yarn build:changed firebase-integration --buildAppExp
- name: Run tests on changed packages
run: yarn test:changed firebase-integration
36 changes: 0 additions & 36 deletions integration/browserify/karma.conf.js

This file was deleted.

26 changes: 0 additions & 26 deletions integration/browserify/package.json

This file was deleted.

34 changes: 0 additions & 34 deletions integration/browserify/src/namespace.test.js

This file was deleted.

30 changes: 0 additions & 30 deletions integration/firebase-typings/index.submodules.ts

This file was deleted.

30 changes: 0 additions & 30 deletions integration/firebase-typings/index.ts

This file was deleted.

13 changes: 0 additions & 13 deletions integration/firebase-typings/package.json

This file was deleted.

7 changes: 0 additions & 7 deletions integration/firebase-typings/tsconfig.json

This file was deleted.

Loading