-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from BFlorian91/dev
Fix CI, and some errors in the test environment
- Loading branch information
Showing
80 changed files
with
2,703 additions
and
24,303 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Firebase Emulator Testing | ||
on: [push, pull_request] | ||
jobs: | ||
emulator_test: | ||
name: Run all the tests using Firebase Emulator Suite | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "20" | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "oracle" | ||
java-version: "17" | ||
|
||
- name: Install Firebase Emulator Suite | ||
run: npm install -g firebase-tools | ||
|
||
- name: Install depedencies | ||
run: npm install | ||
working-directory: src/ | ||
|
||
- name: Run all the tests | ||
working-directory: src/ | ||
run: firebase emulators:exec --project code-vault-dd8d8 'npm run test' | ||
env: | ||
GCloud_Project: fb-visuals | ||
VITE_API_KEY: ${{ secrets.VITE_API_KEY }} | ||
VITE_AUTH_DOMAIN: ${{ secrets.VITE_AUTH_DOMAIN }} | ||
VITE_PROJECT_ID: ${{ secrets.VITE_PROJECT_ID }} | ||
VITE_STORAGE_BUCKET: ${{ secrets.VITE_STORAGE_BUCKET }} | ||
VITE_MESSAGING_SENDER_ID: ${{ secrets.VITE_MESSAGING_SENDER_ID }} | ||
VITE_APP_ID: ${{ secrets.VITE_APP_ID }} | ||
VITE_MEASUREMENT_ID: ${{ secrets.VITE_MEASUREMENT_ID }} | ||
FIREBASE_TYPE: ${{ secrets.FIREBASE_TYPE }} | ||
FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }} | ||
FIREBASE_PRIVATE_KEY_ID: ${{ secrets.FIREBASE_PRIVATE_KEY_ID }} | ||
FIREBASE_PRIVATE_KEY: ${{ secrets.FIREBASE_PRIVATE_KEY }} | ||
FIREBASE_CLIENT_EMAIL: ${{ secrets.FIREBASE_CLIENT_EMAIL }} | ||
FIREBASE_CLIENT_ID: ${{ secrets.FIREBASE_CLIENT_ID }} | ||
FIREBASE_AUTH_URI: ${{ secrets.FIREBASE_AUTH_URI }} | ||
FIREBASE_TOKEN_URI: ${{ secrets.FIREBASE_TOKEN_URI }} | ||
FIREBASE_AUTH_PROVIDER_X509_CERT_URL: ${{ secrets.FIREBASE_AUTH_PROVIDER_X509_CERT_URL }} | ||
FIREBASE_CLIENT_X509_CERT_URL: ${{ secrets.FIREBASE_CLIENT_X509_CERT_URL }} | ||
FIREBASE_UNIVERSE_DOMAIN: ${{ secrets.FIREBASE_UNIVERSE_DOMAIN }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
pnpm test && pnpm lint | ||
pnpm test:fe && pnpm lint |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
{ | ||
"singleQuote": false, | ||
"semi": true, | ||
"tabWidth": 2, | ||
"trailingComma": "all" | ||
} | ||
"singleQuote": false, | ||
"useTabs": true, | ||
"semi": true, | ||
"tabWidth": 2, | ||
"trailingComma": "all", | ||
"printWidth": 80, | ||
"htmlWhitespaceSensitivity": "ignore" | ||
} | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
es6: true, | ||
node: true, | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:import/errors", | ||
"plugin:import/warnings", | ||
"plugin:import/typescript", | ||
"google", | ||
"plugin:@typescript-eslint/recommended", | ||
], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
project: ["tsconfig.json", "tsconfig.dev.json"], | ||
sourceType: "module", | ||
}, | ||
ignorePatterns: [ | ||
"/lib/**/*", // Ignore built files. | ||
], | ||
plugins: [ | ||
"@typescript-eslint", | ||
"import", | ||
], | ||
rules: { | ||
"quotes": ["error", "double"], | ||
"import/no-unresolved": 0, | ||
"indent": ["error", 2], | ||
}, | ||
root: true, | ||
env: { | ||
es6: true, | ||
node: true, | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:import/errors", | ||
"plugin:import/warnings", | ||
"plugin:import/typescript", | ||
"google", | ||
"plugin:@typescript-eslint/recommended", | ||
], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
project: ["tsconfig.json", "tsconfig.dev.json"], | ||
sourceType: "module", | ||
}, | ||
ignorePatterns: [ | ||
"/lib/**/*", // Ignore built files. | ||
], | ||
plugins: ["@typescript-eslint", "import"], | ||
rules: { | ||
"quotes": ["error", "double"], | ||
"indent": ["error", "tab"], | ||
"import/no-unresolved": 0, | ||
"no-tabs": 0, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.