Skip to content

Commit

Permalink
Add(workflow testing)
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldkri committed Sep 10, 2024
1 parent 508f1aa commit 2001456
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Run Unit Tests

on:
push:
branches:
- develop
- master
- testing
pull_request:
branches:
- develop
- master

jobs:
test:
runs-on: ubuntu-latest

services:
firebase:
image: firebase/emulators
ports:
- 8080:8080
- 8085:8085
options: --entrypoint sh
volumes:
- .:/app

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.17.0'

- name: Install pnpm
run: |
npm install -g pnpm
- name: Install dependencies
run: pnpm install

- name: Set up Firestore emulator
run: |
sudo pnpm add -g firebase-tools
- name: Start Firestore emulator
run: pnpm run emulators:start

- name: Run Unit Tests
run: pnpm run test

0 comments on commit 2001456

Please sign in to comment.