Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-codemonk committed Oct 4, 2023
1 parent 4a507d8 commit f652182
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/ci-test-limited.yml
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,18 @@ jobs:
config-file: cypress_ci_custom.config.ts
working-directory: app/client
env: "NODE_ENV=development"

- name: Trim number of cypress log files
run: |
find ${{ github.workspace }}/app/client/cypress/cypress-logs -name '*.json' -type f | tail -n +11 | xargs -I {} rm -- {}
- name: Upload failed test cypress logs artifact
uses: actions/upload-artifact@v3
with:
name: cypress-console-logs
path: ${{ github.workspace }}/app/client/cypress/cypress-logs

- name: Collect CI container logs
- name: Test
if: failure()
working-directory: "."
run: |
Expand Down
1 change: 1 addition & 0 deletions app/client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ cypress/videos
cypress/screenshots
cypress/limited-tests.txt
cypress.env.json
cypress/cypress-logs
results/


Expand Down
2 changes: 1 addition & 1 deletion app/client/cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = async (on, config) => {
"cypress-logs|json": "json",
},
specRoot: "cypress/e2e",
printLogsToFile: "onFail",
printLogsToFile: "always",
};
installLogsPrinter(on, logsPrinterOptions);

Expand Down

0 comments on commit f652182

Please sign in to comment.