-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #914 from EyeSeeTea/development
Release 2.13.0
- Loading branch information
Showing
91 changed files
with
3,175 additions
and
2,502 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
BROWSER=false | ||
PORT=8081 | ||
SKIP_PREFLIGHT_CHECK=true | ||
REACT_APP_DHIS2_BASE_URL=https://dev.eyeseetea.com/play/ | ||
REACT_APP_DHIS2_BASE_URL=https://dev.eyeseetea.com/play | ||
|
||
CYPRESS_DHIS2_AUTH='admin:district' | ||
CYPRESS_EXTERNAL_API="https://dev.eyeseetea.com/play" | ||
CYPRESS_ROOT_URL=http://localhost:8081 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/**/*.d.ts | ||
/src/locales |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Application testing | ||
on: | ||
push: | ||
workflow_dispatch: | ||
jobs: | ||
unit-tests: | ||
name: Unit tests | ||
runs-on: self-hosted | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "12.x" | ||
|
||
- name: Install yarn | ||
run: npm install -g yarn | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache yarn dependencies | ||
uses: actions/cache@v2 | ||
id: yarn-cache | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Installing Dependencies | ||
run: yarn install --frozen-lockfile --silent | ||
|
||
- name: Install translations | ||
run: yarn localize | ||
|
||
- name: Run jest tests | ||
run: yarn test | ||
|
||
- name: Run typescript tests | ||
run: npx tsc |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ node_modules | |
*.min.js | ||
*.min.css | ||
dist | ||
metadata-synchronization-server.js |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
module.exports = process.env.CYPRESS_E2E | ||
? {} | ||
: { | ||
presets: ["@babel/typescript", ["babel-preset-react-app", { runtime: "automatic" }]], | ||
}; | ||
module.exports = { | ||
presets: ["@babel/typescript", ["babel-preset-react-app", { runtime: "automatic" }]], | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* Required for CRA 4, see https://github.com/welldone-software/why-did-you-render/issues/154#issuecomment-773905769 */ | ||
|
||
module.exports = { | ||
babel: { | ||
loaderOptions: babelLoaderOptions => { | ||
const origBabelPresetCRAIndex = babelLoaderOptions.presets.findIndex(preset => { | ||
return preset[0].includes("babel-preset-react-app"); | ||
}); | ||
|
||
const origBabelPresetCRA = babelLoaderOptions.presets[origBabelPresetCRAIndex]; | ||
|
||
babelLoaderOptions.presets[origBabelPresetCRAIndex] = function overridenPresetCRA(api, opts, env) { | ||
const babelPresetCRAResult = require(origBabelPresetCRA[0])(api, origBabelPresetCRA[1], env); | ||
|
||
babelPresetCRAResult.presets.forEach(preset => { | ||
// detect @babel/preset-react with {development: true, runtime: 'automatic'} | ||
const isReactPreset = | ||
preset && preset[1] && preset[1].runtime === "automatic" && preset[1].development === true; | ||
if (isReactPreset) { | ||
preset[1].importSource = "@welldone-software/why-did-you-render"; | ||
} | ||
}); | ||
|
||
return babelPresetCRAResult; | ||
}; | ||
|
||
return babelLoaderOptions; | ||
}, | ||
}, | ||
}; |
This file contains 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
Oops, something went wrong.