-
Notifications
You must be signed in to change notification settings - Fork 19
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 #166 from chocolat-chaud-io/151-update-libraries
fix: updated all libraries to their latest versions
- Loading branch information
Showing
57 changed files
with
29,729 additions
and
31,180 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"root": true, | ||
"ignorePatterns": ["**/*"], | ||
"plugins": ["@nrwl/nx"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"rules": { | ||
"@nrwl/nx/enforce-module-boundaries": [ | ||
"error", | ||
{ | ||
"enforceBuildableLibDependency": true, | ||
"allow": [], | ||
"depConstraints": [ | ||
{ | ||
"sourceTag": "*", | ||
"onlyDependOnLibsWithTags": ["*"] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"extends": ["plugin:@nrwl/nx/typescript"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"extends": ["plugin:@nrwl/nx/javascript"], | ||
"rules": {} | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,9 @@ on: | |
- master | ||
|
||
jobs: | ||
build: | ||
build-test-release: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.13.1] | ||
|
||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
|
@@ -28,17 +24,10 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set head | ||
run: sh .github/scripts/get-head.sh >> $GITHUB_ENV | ||
env: | ||
PR_HEAD: ${{ github.event.pull_request.head.sha }} | ||
MERGE_HEAD: ${{ github.event.after }} | ||
|
||
- name: Set base | ||
run: sh .github/scripts/get-base.sh >> $GITHUB_ENV | ||
env: | ||
PR_BASE: ${{ github.event.pull_request.base.sha }} | ||
MERGE_BASE: ${{ github.event.before }} | ||
- name: Derive appropriate SHAs for base and head for `nx affected` commands | ||
uses: nrwl/nx-set-shas@v2 | ||
with: | ||
main-branch-name: master | ||
|
||
- name: Inject Nx Cloud token | ||
shell: bash | ||
|
@@ -50,33 +39,43 @@ jobs: | |
- name: Setup postgres container | ||
run: docker-compose -f $GITHUB_WORKSPACE/apps/database/postgres/docker-compose.yml up -d | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2-beta | ||
- name: Setup node.js 14.18.0 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: 14.18.0 | ||
|
||
- name: Cache dependencies | ||
id: cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
./node_modules | ||
/home/runner/.cache/Cypress | ||
key: modules-${{ hashFiles('package-lock.json') }} | ||
|
||
- name: Install npm packages | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: npm i | ||
|
||
- name: Lint files | ||
run: npm run affected:lint -- --base=$BASE --head=$HEAD | ||
- name: Start api | ||
run: npm run typeorm -- migration:run && npm start api & | ||
env: | ||
TEST: true | ||
|
||
- name: Enforce naming conventions | ||
run: npm run lint:file-folder-convention | ||
|
||
- name: Build affected apps | ||
run: npm run affected:build -- --base=$BASE --head=$HEAD | ||
- name: Lint affected files | ||
run: npm run affected:lint | ||
|
||
- name: Start api | ||
run: npm run typeorm -- migration:run && npm start api & | ||
env: | ||
TEST: true | ||
- name: Build affected apps | ||
run: npm run affected:build | ||
|
||
- name: Run tests | ||
run: npm run affected:test -- --base=$BASE --head=$HEAD --code-coverage | ||
- name: Test affected apps | ||
run: npm run affected:test -- --code-coverage | ||
|
||
- name: Run e2e tests | ||
run: npm run affected:e2e -- --base=$BASE --head=$HEAD | ||
- name: Test affected apps e2e | ||
run: npm run affected:e2e | ||
|
||
- name: Codecov | ||
uses: codecov/codecov-action@v2 | ||
|
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
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
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
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
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,20 @@ | ||
{ | ||
"extends": ["../../.eslintrc.json"], | ||
"ignorePatterns": ["!**/*"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"rules": { | ||
"no-irregular-whitespace": "off" | ||
} | ||
}, | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"rules": {} | ||
} | ||
] | ||
} |
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,15 @@ | ||
module.exports = { | ||
displayName: "cli", | ||
preset: "../../jest.preset.js", | ||
globals: { | ||
"ts-jest": { | ||
tsconfig: "<rootDir>/tsconfig.spec.json", | ||
}, | ||
}, | ||
testEnvironment: "node", | ||
transform: { | ||
"^.+\\.[tj]s$": "ts-jest", | ||
}, | ||
moduleFileExtensions: ["ts", "js", "html"], | ||
coverageDirectory: "../../coverage/apps/cli", | ||
} |
Oops, something went wrong.