Epic/dev 3 authentication #40
This file contains 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: Atlas 3.0 CI | |
on: | |
pull_request: | |
branches: | |
- main | |
- epic/* | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.draft == false | |
environment: test | |
env: | |
VITE_FIREBASE_KEY: ${{ secrets.VITE_FIREBASE_KEY }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "yarn" | |
- name: Cache Firebase Emulator | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/firebase/emulators | |
key: ${{ runner.os }}-firebase-emulator-${{ hashFiles('**/firebase.json') }} | |
restore-keys: | | |
${{ runner.os }}-firebase-emulator- | |
- name: Install Firebase Emulator Suite | |
run: npm install -g firebase-tools | |
- name: Install dependencies | |
run: yarn | |
- name: Run Vitest | |
run: firebase emulators:exec "yarn test" |