This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const { exec } = require('child_process') | |
console.log('Starting Test. Total approx test time: 1 minute'); | |
exec('npm run test', { cwd: __dirname }, (error, stdout, stderr) => { | |
if (error) { | |
console.log(`error: ${error.message}`) | |
return | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
cypress: | |
needs: [build, check_labels] | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ needs.check_labels.outputs.is_cd == 'true' }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const downloadData = async ( | |
fileName: string, | |
data: object | string | |
): Promise<void> => { | |
const stringData = typeof data === 'string' ? data : JSON.stringify(data); | |
try { | |
const dataBlob = new Blob([stringData], { type: 'text/json' }); | |
const url = URL.createObjectURL(dataBlob); | |
const link = document.createElement('a'); | |
link.href = url; |
OlderNewer