Skip to content

Create set-project-start.yml #83

Create set-project-start.yml

Create set-project-start.yml #83

# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: React Integration Tests
on:
push:
branches: [main]
pull_request:
jobs:
integration-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Setup Java for Firebase Emulator
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Build core package
run: pnpm --filter @firebase-ui/core build
- name: Install Firebase Tools
run: npm install -g firebase-tools
- name: Create Firebase config
run: |
cat > firebase.json << EOF
{
"emulators": {
"auth": {
"port": 9099
},
"ui": {
"enabled": false
}
}
}
EOF
- name: Start Firebase Emulator and Run Integration Tests
run: |
firebase emulators:start &
sleep 10
pnpm --filter @firebase-ui/react test:integration