Skip to content

Commit

Permalink
feat: update local environment
Browse files Browse the repository at this point in the history
  • Loading branch information
chasewoo committed Aug 24, 2024
1 parent 92d61ac commit 7da8f7f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
~/.cache/Cypress # needed for the Cypress binary
key: npm-dependencies-${{ hashFiles('package-lock.json') }}

- run: echo VITE_CLIENT_BASE_URL= >> .env.local
- run: echo VITE_CLIENT_STORAGE_URL= >> .env.local
- run: echo VITE_CLIENT_ASSET_URL= >> .env.local
- run: echo VITE_CLIENT_PUBLIC_PATH= >> .env.local
- run: echo VITE_CLIENT_BASE_URL= >> .env.build
- run: echo VITE_CLIENT_STORAGE_URL= >> .env.build
- run: echo VITE_CLIENT_ASSET_URL= >> .env.build
- run: echo VITE_CLIENT_PUBLIC_PATH= >> .env.build

- run: npm run lint
- run: npm run test
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ testem.log
Thumbs.db

# Environment
.env.local
.env.*
.local.env
.docker
10 changes: 10 additions & 0 deletions apps/server/src/util/workflow/functions/cryptoPassword.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { cryptoPassword } from './cryptoPassword';

describe('cryptoPassword', () => {
it('cryptoPassword', () => {
const password = cryptoPassword('123456');
expect(password).toEqual(
'4ff1b5a2c4915baf130db8ab9690cd5bb32263911ec9f443a6b7df4604bc612453b419e6e9d1a78a921e468e5c60e5d536151c4d166c9a1ea46b5587ba1692a1',
);
});
});

0 comments on commit 7da8f7f

Please sign in to comment.