diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 70432a42..4b782d3c 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -8,24 +8,24 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: "Create creds json" id: create-creds-json - uses: jsdaniell/create-json@1.1.2 + uses: jsdaniell/create-json@1.2.3 with: name: "credentials.json" json: '{"adminEmail": "${{secrets.CY_ADMIN_EMAIL}}", "adminPassword": "${{secrets.CY_ADMIN_PASSWORD}}", "password": "${{secrets.CY_PASSWORD}}", "shortPassword": "${{secrets.CY_SHORT_PASSWORD}}", "shortConfirmationPassword": "${{secrets.CY_SHORT_CONFIRMATION_PASSWORD}}", "wrongConfirmationPasssword": "${{secrets.CY_WRONG_CONFIRMATION_PASSWORD}}"}' dir: "gateway/cypress/fixtures" - name: "Create Gmail creds json" id: create-gmail-creds-file - uses: jsdaniell/create-json@1.1.2 + uses: jsdaniell/create-json@1.2.3 with: name: "credentials_qa.json" json: '{"installed":{"client_id":"${{secrets.CY_CREDS_CLIENT_ID}}","project_id":"${{secrets.CY_CREDS_PROJECT_ID}}","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"${{secrets.CY_CREDS_CLIENT_SECRET}}","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}' dir: "gateway/cypress/plugins" - name: "Create Gmail token json" id: create-gmail-token-file - uses: jsdaniell/create-json@1.1.2 + uses: jsdaniell/create-json@1.2.3 with: name: "token_qa.json" json: '{"access_token":"${{secrets.CY_TOKEN_ACCESS}}","refresh_token":"${{secrets.CY_TOKEN_REFRESH}}","scope":"https://www.googleapis.com/auth/gmail.readonly https://www.googleapis.com/auth/gmail.send","token_type":"Bearer","expiry_date":${{secrets.CY_TOKEN_EXPIRY_DATE}}}' @@ -36,12 +36,12 @@ jobs: install-command: npm install cypress --legacy-peer-deps working-directory: gateway spec: cypress/integration/retention/csv-add-affiliations.js - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: cypress-screenshots path: gateway/cypress/screenshots - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: cypress-videos @@ -53,21 +53,21 @@ jobs: uses: actions/checkout@v2 - name: "Create creds json" id: create-creds-json - uses: jsdaniell/create-json@1.1.2 + uses: jsdaniell/create-json@1.2.3 with: name: "credentials.json" json: '{"adminEmail": "${{secrets.CY_ADMIN_EMAIL}}", "adminPassword": "${{secrets.CY_ADMIN_PASSWORD}}", "password": "${{secrets.CY_PASSWORD}}", "shortPassword": "${{secrets.CY_SHORT_PASSWORD}}", "shortConfirmationPassword": "${{secrets.CY_SHORT_CONFIRMATION_PASSWORD}}", "wrongConfirmationPasssword": "${{secrets.CY_WRONG_CONFIRMATION_PASSWORD}}"}' dir: "gateway/cypress/fixtures" - name: "Create Gmail creds json" id: create-gmail-creds-file - uses: jsdaniell/create-json@1.1.2 + uses: jsdaniell/create-json@1.2.3 with: name: "credentials_qa.json" json: '{"installed":{"client_id":"${{secrets.CY_CREDS_CLIENT_ID}}","project_id":"${{secrets.CY_CREDS_PROJECT_ID}}","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"${{secrets.CY_CREDS_CLIENT_SECRET}}","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}' dir: "gateway/cypress/plugins" - name: "Create Gmail token json" id: create-gmail-token-file - uses: jsdaniell/create-json@1.1.2 + uses: jsdaniell/create-json@1.2.3 with: name: "token_qa.json" json: '{"access_token":"${{secrets.CY_TOKEN_ACCESS}}","refresh_token":"${{secrets.CY_TOKEN_REFRESH}}","scope":"https://www.googleapis.com/auth/gmail.readonly https://www.googleapis.com/auth/gmail.send","token_type":"Bearer","expiry_date":${{secrets.CY_TOKEN_EXPIRY_DATE}}}' @@ -79,12 +79,12 @@ jobs: working-directory: gateway spec: | cypress/integration/retention/csv-edit-affiliations.js - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: cypress-screenshots path: gateway/cypress/screenshots - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: cypress-videos @@ -96,21 +96,21 @@ jobs: uses: actions/checkout@v2 - name: "Create creds json" id: create-creds-json - uses: jsdaniell/create-json@1.1.2 + uses: jsdaniell/create-json@1.2.3 with: name: "credentials.json" json: '{"adminEmail": "${{secrets.CY_ADMIN_EMAIL}}", "adminPassword": "${{secrets.CY_ADMIN_PASSWORD}}", "password": "${{secrets.CY_PASSWORD}}", "shortPassword": "${{secrets.CY_SHORT_PASSWORD}}", "shortConfirmationPassword": "${{secrets.CY_SHORT_CONFIRMATION_PASSWORD}}", "wrongConfirmationPasssword": "${{secrets.CY_WRONG_CONFIRMATION_PASSWORD}}"}' dir: "gateway/cypress/fixtures" - name: "Create Gmail creds json" id: create-gmail-creds-file - uses: jsdaniell/create-json@1.1.2 + uses: jsdaniell/create-json@1.2.3 with: name: "credentials_qa.json" json: '{"installed":{"client_id":"${{secrets.CY_CREDS_CLIENT_ID}}","project_id":"${{secrets.CY_CREDS_PROJECT_ID}}","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"${{secrets.CY_CREDS_CLIENT_SECRET}}","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}' dir: "gateway/cypress/plugins" - name: "Create Gmail token json" id: create-gmail-token-file - uses: jsdaniell/create-json@1.1.2 + uses: jsdaniell/create-json@1.2.3 with: name: "token_qa.json" json: '{"access_token":"${{secrets.CY_TOKEN_ACCESS}}","refresh_token":"${{secrets.CY_TOKEN_REFRESH}}","scope":"https://www.googleapis.com/auth/gmail.readonly https://www.googleapis.com/auth/gmail.send","token_type":"Bearer","expiry_date":${{secrets.CY_TOKEN_EXPIRY_DATE}}}' @@ -122,12 +122,12 @@ jobs: working-directory: gateway spec: | cypress/integration/retention/add-affiliation.js - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: cypress-screenshots path: gateway/cypress/screenshots - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: cypress-videos @@ -139,21 +139,21 @@ jobs: uses: actions/checkout@v2 - name: "Create creds json" id: create-creds-json - uses: jsdaniell/create-json@1.1.2 + uses: jsdaniell/create-json@1.2.3 with: name: "credentials.json" json: '{"adminEmail": "${{secrets.CY_ADMIN_EMAIL}}", "adminPassword": "${{secrets.CY_ADMIN_PASSWORD}}", "password": "${{secrets.CY_PASSWORD}}", "shortPassword": "${{secrets.CY_SHORT_PASSWORD}}", "shortConfirmationPassword": "${{secrets.CY_SHORT_CONFIRMATION_PASSWORD}}", "wrongConfirmationPasssword": "${{secrets.CY_WRONG_CONFIRMATION_PASSWORD}}"}' dir: "gateway/cypress/fixtures" - name: "Create Gmail creds json" id: create-gmail-creds-file - uses: jsdaniell/create-json@1.1.2 + uses: jsdaniell/create-json@1.2.3 with: name: "credentials_qa.json" json: '{"installed":{"client_id":"${{secrets.CY_CREDS_CLIENT_ID}}","project_id":"${{secrets.CY_CREDS_PROJECT_ID}}","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"${{secrets.CY_CREDS_CLIENT_SECRET}}","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}' dir: "gateway/cypress/plugins" - name: "Create Gmail token json" id: create-gmail-token-file - uses: jsdaniell/create-json@1.1.2 + uses: jsdaniell/create-json@1.2.3 with: name: "token_qa.json" json: '{"access_token":"${{secrets.CY_TOKEN_ACCESS}}","refresh_token":"${{secrets.CY_TOKEN_REFRESH}}","scope":"https://www.googleapis.com/auth/gmail.readonly https://www.googleapis.com/auth/gmail.send","token_type":"Bearer","expiry_date":${{secrets.CY_TOKEN_EXPIRY_DATE}}}' @@ -165,12 +165,12 @@ jobs: working-directory: gateway spec: | cypress/integration/retention/notifications.js - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: cypress-screenshots path: gateway/cypress/screenshots - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: cypress-videos @@ -182,21 +182,21 @@ jobs: uses: actions/checkout@v2 - name: "Create creds json" id: create-creds-json - uses: jsdaniell/create-json@1.1.2 + uses: jsdaniell/create-json@1.2.3 with: name: "credentials.json" json: '{"adminEmail": "${{secrets.CY_ADMIN_EMAIL}}", "adminPassword": "${{secrets.CY_ADMIN_PASSWORD}}", "password": "${{secrets.CY_PASSWORD}}", "shortPassword": "${{secrets.CY_SHORT_PASSWORD}}", "shortConfirmationPassword": "${{secrets.CY_SHORT_CONFIRMATION_PASSWORD}}", "wrongConfirmationPasssword": "${{secrets.CY_WRONG_CONFIRMATION_PASSWORD}}"}' dir: "gateway/cypress/fixtures" - name: "Create Gmail creds json" id: create-gmail-creds-file - uses: jsdaniell/create-json@1.1.2 + uses: jsdaniell/create-json@1.2.3 with: name: "credentials_qa.json" json: '{"installed":{"client_id":"${{secrets.CY_CREDS_CLIENT_ID}}","project_id":"${{secrets.CY_CREDS_PROJECT_ID}}","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"${{secrets.CY_CREDS_CLIENT_SECRET}}","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}' dir: "gateway/cypress/plugins" - name: "Create Gmail token json" id: create-gmail-token-file - uses: jsdaniell/create-json@1.1.2 + uses: jsdaniell/create-json@1.2.3 with: name: "token_qa.json" json: '{"access_token":"${{secrets.CY_TOKEN_ACCESS}}","refresh_token":"${{secrets.CY_TOKEN_REFRESH}}","scope":"https://www.googleapis.com/auth/gmail.readonly https://www.googleapis.com/auth/gmail.send","token_type":"Bearer","expiry_date":${{secrets.CY_TOKEN_EXPIRY_DATE}}}' @@ -221,12 +221,12 @@ jobs: cypress/integration/retention/ui-homepage.js cypress/integration/retention/ui-homepage-edit.js cypress/integration/retention/ui-reports.js - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: cypress-screenshots path: gateway/cypress/screenshots - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: cypress-videos