Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: env file #25

Merged
merged 6 commits into from
Apr 23, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -101,5 +107,5 @@ jobs:
- name: Upload Coverage
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.xml
name: coverage
path: coverage.xml
6 changes: 3 additions & 3 deletions .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -36,5 +36,5 @@ jobs:
- name: Upload Build
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
name: dist
path: dist
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"tabWidth": 4
}