Skip to content

Commit

Permalink
--wip-- fix test proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
thconte committed Aug 29, 2024
1 parent 9733f85 commit 45bbaf8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/dev_on_workflow_tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@ jobs:
key: v1-yarn-proxy-dependency-cache-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
v1-yarn-proxy-dependency-cache-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --immutable --cwd server
- run: yarn --cwd server test:unit:ci
- name: Install packages for proxy
run: cd server && yarn install --immutable && cd ..
- name: Run proxy unit tests
run: cd server && yarn test:unit:ci && cd ..
- name: Get secrets for SonarCloud
id: 'sonar_secrets'
uses: 'google-github-actions/get-secretmanager-secrets@v2'
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/dev_on_workflow_web_proxy_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ jobs:
key: v1-yarn-proxy-dependency-cache-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
v1-yarn-proxy-dependency-cache-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- run: yarn install
- name: Install package for proxy
run: yarn install --immutable --cwd server
- name: Install app dependencies
run: yarn install
- name: Install packages for proxy
run: cd server && yarn install --immutable && cd ..
- name: Get Secret
id: 'secrets'
uses: 'google-github-actions/get-secretmanager-secrets@v2'
Expand All @@ -66,7 +67,7 @@ jobs:
workload_identity_provider: ${{ secrets.GCP_PROD_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GCP_PROD_SERVICE_ACCOUNT }}
- name: 'Push proxy for input env'
run: yarn --cwd server deploy:${{ inputs.ENV }}
run: cd server && yarn deploy:${{ inputs.ENV }} && cd ..

- name: 'Clear unused apps'
run: |
Expand Down

0 comments on commit 45bbaf8

Please sign in to comment.