feat(*): migrate to vitest for angular #158
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
check-latest: true | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: latest | |
- name: Install dependencies | |
run: pnpm install | |
- name: Install Firebase CLI | |
run: npm i -g [email protected] | |
- name: Start Firebase emulator and run tests | |
run: | | |
firebase emulators:start --only auth --project demo-test & | |
sleep 15 | |
# Wait for emulator to be ready | |
until wget -q --spider http://localhost:9099 2>/dev/null; do | |
echo "Waiting for emulator to start..." | |
sleep 2 | |
done | |
echo "Emulator is ready, running tests..." | |
pnpm test |