From 3afac2c28ae3c1a56ce3d0ea97f3ff1a26462fc8 Mon Sep 17 00:00:00 2001 From: Alejandro Marco Alejandre Date: Fri, 6 Sep 2024 20:42:57 +0800 Subject: [PATCH] added github workflow --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7864bed --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + name: Perform `firebase emulators:exec "npm run jest"` + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Install function modules + run: | + cd functions + npm install + - name: Install `firebase-tools` module globally + run: npm install -g firebase-tools + - name: Run `firebase emulators:exec "npm run jest"` + run: firebase emulators:exec "npm run jest"