diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 789e918..a15b979 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -20,7 +20,7 @@ jobs: uses: actions/setup-node@v4 with: always-auth: true - cache: 'npm' + cache: "npm" node-version-file: package.json registry-url: https://registry.npmjs.org scope: "@hedia" diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index ebfce60..6f06674 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -20,7 +20,7 @@ jobs: uses: actions/setup-node@v4 with: always-auth: true - cache: 'npm' + cache: "npm" node-version-file: package.json registry-url: https://registry.npmjs.org scope: "@hedia" diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index cddf051..9290938 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -25,7 +25,7 @@ jobs: uses: actions/setup-node@v4 with: always-auth: true - cache: 'npm' + cache: "npm" node-version-file: package.json registry-url: https://registry.npmjs.org scope: "@hedia" @@ -38,8 +38,8 @@ jobs: - name: Download Coverage uses: actions/download-artifact@v4 with: - path: . - pattern: coverage + path: . + pattern: coverage - name: Check Coverage id: coverage diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8c4ad83..883b6d6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -71,7 +71,7 @@ jobs: uses: actions/setup-node@v4 with: always-auth: true - cache: 'npm' + cache: "npm" node-version-file: package.json registry-url: https://registry.npmjs.org scope: "@hedia" @@ -84,8 +84,14 @@ jobs: - name: Download Build uses: actions/download-artifact@v4 with: - path: . - pattern: dist + path: . + pattern: dist + + - name: Create .env + env: + ENV_FILE: ${{secrets.ENV_FILE}} + if: env.ENV_FILE != null + run: echo "$ENV_FILE" > .env - name: Setup Service run: NODE_ENV=test npm run setup --if-present @@ -101,5 +107,5 @@ jobs: - name: Upload Coverage uses: actions/upload-artifact@v4 with: - name: coverage - path: coverage.xml + name: coverage + path: coverage.xml diff --git a/.github/workflows/typescript.yml b/.github/workflows/typescript.yml index a9bf433..c144511 100644 --- a/.github/workflows/typescript.yml +++ b/.github/workflows/typescript.yml @@ -20,7 +20,7 @@ jobs: uses: actions/setup-node@v4 with: always-auth: true - cache: 'npm' + cache: "npm" node-version-file: package.json registry-url: https://registry.npmjs.org scope: "@hedia" @@ -36,5 +36,5 @@ jobs: - name: Upload Build uses: actions/upload-artifact@v4 with: - name: dist - path: dist + name: dist + path: dist diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..b6c5694 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,3 @@ +{ + "tabWidth": 4 +} \ No newline at end of file