Skip to content

chore: Add license headers #64

chore: Add license headers

chore: Add license headers #64

# 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: Angular Unit Tests
on:
push:
branches: [main]
pull_request:
jobs:
unit-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: 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: Compile Angular in development mode first
run: pnpm --filter angular-example exec ng build firebaseui-angular --configuration=development
- name: Run unit tests
run: |
pnpm --filter angular-example test:unit || test_exit_code=$?
if [[ $test_exit_code -eq 1 ]]; then
echo "Tests completed with expected exit code 1"
exit 0
else
echo "Unexpected exit code: $test_exit_code"
exit 1
fi