[go: nahoru, domu]

Skip to content

Commit

Permalink
chore(*): Improved CI processes and testing
Browse files Browse the repository at this point in the history
* chore(*): start review of CI

* chore(*): fixing tests which are out of date

* test(firestore-bigquery-export): fix broken logger tests

* test(*): fix another snapshot

* fix(storage-resize-images): fixed jest module errors

* fix(firestore-translate-text): fixed node dependencies, jest module configuration

* test(*): fix translation test

* chore(*) upgraded emulator functions version

* test(*): update ci test script

* test(*): update ci test script

* test(*): enable caching on CI

* test(*): increase max-parallel

* fix:(delete-user-data): added recursive deletions

* chore(*) removed open-sesame from ci tests

* chore(*) re-introduced paralell testing in ci

* chore: reverted e2e checks for all modules expcept for bq

Co-authored-by: dackers86 <ackers86@hotmail.com>
  • Loading branch information
cabljac and dackers86 committed Dec 22, 2022
1 parent 3e0054d commit 6656cfe
Show file tree
Hide file tree
Showing 34 changed files with 15,464 additions and 33,686 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,18 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: NPM install
run: npm install
cache: "npm"
cache-dependency-path: "**/package-lock.json"
- name: NPM INSTALL
run: npm i
- name: build emulator functions
run: cd _emulator/functions && npm i && npm run build & cd ../..
- name: Install firebase CLI
uses: nick-invision/retry@v1
with:
timeout_minutes: 10
retry_wait_seconds: 60
max_attempts: 3
command: npm i -g firebase-tools
- name: Submit coverage
run: ./node_modules/.bin/codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: npm test
run: npm run test:ci
8 changes: 8 additions & 0 deletions _emulator/extensions/firestore-send-email.secret.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
LOCATION=europe-west2
TEMPLATES_COLLECTION=templates
MAIL_COLLECTION=mail
SMTP_CONNECTION_URI=smtps://fakeemail@gmail.com:secret-password@smtp.gmail.com:465
SMTP_PASSWORD=secret-password
DEFAULT_FROM=fakeemail@gmail.com
DEFAULT_REPLY_TO=fakeemail@gmail.com
TESTING=true
4 changes: 4 additions & 0 deletions _emulator/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
},
"ui": {
"enabled": true
},
"firestore": {
"host": "127.0.0.1",
"port": 8080
}
},
"functions": {
Expand Down
175 changes: 86 additions & 89 deletions _emulator/functions/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion _emulator/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"main": "lib/index.js",
"dependencies": {
"firebase-admin": "^10.2.0",
"firebase-functions": "^3.21.0"
"firebase-functions": "^4.1.0"
},
"devDependencies": {
"typescript": "^4.6.4"
Expand Down
Loading

0 comments on commit 6656cfe

Please sign in to comment.