Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,10 @@ jobs:
retry_wait_seconds: 60
max_attempts: 3
command: npm i -g firebase-tools
- name: Use extension commands
run: firebase --open-sesame extdev
- name: Run 'firestore-send-email' extension emulator
- name: Run 'firestore-send-email' tests on the Extension emulator
run:
cd ./firestore-send-email/functions/__tests__/emulator && sh
./start.sh
- name: Run tests with coverage
run: npm run test-coverage
cd ./firestore-send-email/integration-test/ && firebase emulators:exec
"cd ../../ && npm run test-coverage" -P demo-test
Copy link
Member

@dackers86 dackers86 Jun 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could potentially remove this from the CI config and keep it local to the extension. If the tests are ran locally, currently there is no emulator and the tests will fail.

As discussed I wonder if there is a way for this to run globally, as opposed running individually for each individual extension - but so that it will also be available for local development

- name: Submit coverage
run: ./node_modules/.bin/codecov
env:
Expand Down
5 changes: 0 additions & 5 deletions firestore-send-email/.firebaserc

This file was deleted.

2 changes: 1 addition & 1 deletion firestore-send-email/functions/__tests__/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { smtpServer } from "./createSMTPServer";
process.env.FIRESTORE_EMULATOR_HOST = "localhost:8080";

admin.initializeApp({
projectId: "extensions-testing",
projectId: "demo-test",
});

const mail = "mail";
Expand Down
Loading