Skip to content

Commit

Permalink
fix(val auth): Disable cognito auth in val, and skip e2e (#232)
Browse files Browse the repository at this point in the history
* fix(val auth):  Disable cognito auth in val, and skip e2e

* test condition

* Revert "test condition"

This reverts commit c0ece0f.
  • Loading branch information
mdial89f authored Nov 30, 2023
1 parent 632ff95 commit 085eec0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
- deploy
env:
baseurl: ${{ needs.deploy.outputs.app-url }}
if: ${{ github.ref != 'refs/heads/production' }}
if: ${{ github.ref != 'refs/heads/production' && github.ref != 'refs/heads/val' }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
10 changes: 7 additions & 3 deletions src/services/auth/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,13 @@ resources:
- ${self:custom.idmInfo.oidc_issuer, ""}
BackWithCognito:
Fn::Not:
- Fn::Equals:
- ${sls:stage}
- production
- Fn::Or:
- Fn::Equals:
- ${sls:stage}
- production
- Fn::Equals:
- ${sls:stage}
- val
Resources:
CognitoUserPool:
Type: AWS::Cognito::UserPool
Expand Down

0 comments on commit 085eec0

Please sign in to comment.