Skip to content

Commit

Permalink
Merge pull request #68 from masagal/dev
Browse files Browse the repository at this point in the history
version 0.0.2
  • Loading branch information
sighmoan authored Jul 31, 2024
2 parents 368883a + 7be2d1a commit 873dcf7
Show file tree
Hide file tree
Showing 39 changed files with 3,606 additions and 1,115 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/azure-static-web-apps-salmon-cliff-0eaa5f203.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Azure Static Web Apps CI/CD

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main

env:
VITE_CLERK_PUBLISHABLE_KEY: ${{ secrets.VITE_CLERK_PUBLISHABLE_KEY }}
VITE_API_HOST: ${{ secrets.VITE_API_HOST }}
VITE_BACKEND_SOCKET_URL: ${{ secrets.VITE_BACKEND_SOCKET_URL }}

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_SALMON_CLIFF_0EAA5F203 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/" # App source code path
api_location: "" # Api source code path - optional
output_location: "dist" # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
app_location: "/"
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_SALMON_CLIFF_0EAA5F203 }}
action: "close"
5 changes: 4 additions & 1 deletion cypress/e2e/markus-ai-test.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ describe("a logged in admin", () => {
});

it("can make a request", () => {
cy.visit(`/requests`);
cy.visit(`/`);
cy.clerkLoaded();
cy.clerkSignIn({
strategy: "email_code",
identifier: testUser,
});
cy.visit(`/requests`);

cy.wait(1000);

cy.get("form").contains("Submit").click();

Expand Down
Loading

0 comments on commit 873dcf7

Please sign in to comment.